SectionInfo.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 SectionInfo
30 {
31 public:
32  SectionInfo();
33  SectionInfo(int id, const Str& name, int categoryId);
34  SectionInfo(const SectionInfo& other);
35  ~SectionInfo();
36 
37  SectionInfo& operator=(const SectionInfo& rhs);
38  bool operator==(const SectionInfo& rhs) const;
39  bool operator!=(const SectionInfo& rhs) const;
40 
41  int id() const;
42  Str name() const;
43  int categoryId() const;
44 
45 private:
46  CEE_PRIVATE_IMPL(SectionInfo);
47 };
48 
49 
50 //==================================================================================================
51 //
52 //
53 //
54 //==================================================================================================
55 class CEE_UG_EXPORT SectionCategoryInfo
56 {
57 public:
59  SectionCategoryInfo(int id, const Str& name);
62 
63  SectionCategoryInfo& operator=(const SectionCategoryInfo& rhs);
64  bool operator==(const SectionCategoryInfo& rhs) const;
65  bool operator!=(const SectionCategoryInfo& rhs) const;
66 
67 
68  int id() const;
69  Str name() const;
70 
71 
72 private:
73  CEE_PRIVATE_IMPL(SectionCategoryInfo);
74 };
75 
76 
77 //==================================================================================================
78 //
79 //
80 //
81 //==================================================================================================
82 class CEE_UG_EXPORT SectionGroupInfo
83 {
84 public:
86  SectionGroupInfo(int id, const Str& name, const std::vector<int>& sectionIds);
87  SectionGroupInfo(const SectionGroupInfo& other);
89 
90  SectionGroupInfo& operator=(const SectionGroupInfo& rhs);
91  bool operator==(const SectionGroupInfo& rhs) const;
92  bool operator!=(const SectionGroupInfo& rhs) const;
93 
94 
95  int id() const;
96  Str name() const;
97  std::vector<int> sectionIds() const;
98 
99 
100 private:
101  CEE_PRIVATE_IMPL(SectionGroupInfo);
102 };
103 
104 } // namespace ug
105 } // namespace cee
Simple class containing metadata info for a section category.
Definition: SectionInfo.h:55
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 section.
Definition: SectionInfo.h:29
Simple class containing metadata info for a section Group.
Definition: SectionInfo.h:82