SetInfo.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2017, 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 SetInfo
30 {
31 public:
32  SetInfo();
33  SetInfo(int id, const Str& name, const Str& description);
34  SetInfo(const SetInfo& other);
35  ~SetInfo();
36 
37  SetInfo& operator=(const SetInfo& rhs);
38  bool operator==(const SetInfo& rhs) const;
39  bool operator!=(const SetInfo& rhs) const;
40 
41  Str name() const;
42  void setName(const Str& name);
43  int id() const;
44  Str description() const;
45  void setDescription(const Str& desc);
46 
47  bool isValid() const;
48 
49 
50 private:
51  CEE_PRIVATE_IMPL(SetInfo);
52 };
53 
54 
55 } // namespace ug
56 } // 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 set.
Definition: SetInfo.h:29