PartInfo.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 PartInfo
30 {
31 public:
32  PartInfo();
33  PartInfo(int partId, const Str& partName);
34  PartInfo(const PartInfo& other);
35  ~PartInfo();
36 
37  PartInfo& operator=(const PartInfo& rhs);
38  bool operator==(const PartInfo& rhs) const;
39  bool operator!=(const PartInfo& rhs) const;
40 
41  int id() const;
42  Str name() const;
43 
44  bool isBoundaryCondition() const;
45  void setBoundaryCondition(bool on);
46 
47  int parentId() const;
48  void setParentId(int parentId);
49 
50  Str partDataValue(const Str& name) const;
51  std::vector<Str> partDataNames() const;
52  void setPartData(const Str& name, const Str& value);
53 
54 private:
55  CEE_PRIVATE_IMPL(PartInfo);
56 };
57 
58 } // namespace ug
59 } // 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 part.
Definition: PartInfo.h:29