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:
33  {
37  OTHER
38  };
39 
40 public:
41  StateInfo();
42  StateInfo(int stateId, const Str& stateName, ReferenceType refType, double stateRefVal);
43  StateInfo(int stateId, const Str& stateName, double stateRefVal);
44  StateInfo(const StateInfo& other);
45  ~StateInfo();
46 
47  StateInfo& operator=(const StateInfo& rhs);
48  bool operator==(const StateInfo& rhs) const;
49  bool operator!=(const StateInfo& rhs) const;
50 
51  int id() const;
52  Str name() const;
53  double referenceValue() const;
54  ReferenceType referenceType() const;
55 
56 private:
57  CEE_PRIVATE_IMPL(StateInfo);
58 };
59 
60 } // namespace ug
61 } // 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
ReferenceType
List of state reference types.
Definition: StateInfo.h:32
Simple class containing metadata info for a state.
Definition: StateInfo.h:29
Load case.
Definition: StateInfo.h:36
Frequency.
Definition: StateInfo.h:35
Time.
Definition: StateInfo.h:34