StateInfo.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2012, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeUnstructGrid/Base.h"
16 
17 #include "CeeCore/Str.h"
18 
19 namespace cee {
20 namespace ug {
21 
22 
23 
24 //==================================================================================================
25 //
26 //
27 //
28 //==================================================================================================
29 class CEE_UG_EXPORT StateInfo
30 {
31 public:
32  StateInfo();
33  StateInfo(int stateId, const Str& stateName, double stateRefVal);
34  StateInfo(const StateInfo& other);
35  ~StateInfo();
36 
37  StateInfo& operator=(const StateInfo& rhs);
38  bool operator==(const StateInfo& rhs) const;
39  bool operator!=(const StateInfo& rhs) const;
40 
41  int id() const;
42  Str name() const;
43  double referenceValue() const;
44 
45 private:
46  CEE_PRIVATE_IMPL(StateInfo);
47 };
48 
49 } // namespace ug
50 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
A general unicode based string class.
Definition: Str.h:28
bool operator!=(const PtrRef< T1 > &a, const PtrRef< T2 > &b)
Returns true if the internal pointers of refs a and b are different.
Definition: PtrRef.h:58
bool operator==(const PtrRef< T1 > &a, const PtrRef< T2 > &b)
Returns true if the internal pointers of refs a and b are equal.
Definition: PtrRef.h:57
Simple class containing metadata info for a state.
Definition: StateInfo.h:29