DATAKIT SDK  V2026.2
dtk_global_data_set.hpp
Go to the documentation of this file.
1 #ifndef _DTK_GLOBAL_DATA_SET_HPP_
2 #define _DTK_GLOBAL_DATA_SET_HPP_
3 
4 #include "util_selection_set.hpp"
6 #include "util/dtk_fdt_set.hpp"
7 #include "def/define.h"
9 
11 {
12 protected:
13 
14  struct Dtk_Handle; // Not defined here
15  Dtk_Handle *_Private; // Handle
16 
17  //! \sa Create()
19 
20  //! \sa Create(const Dtk_SelectionDataSet&)
22  inline virtual Dtk_Object* Clone() { return new Dtk_SelectionDataSet(*this); }
23 
24  //! \BaseDestructor
26 
28 
29 private:
30  void _Init();
31  void _Copy(const Dtk_SelectionDataSet &s);
32  void _Reset();
33  friend class Dtk_SmartPtr< Dtk_SelectionDataSet >;
34 public:
35  //! \DtkDynamicType
37 
38  //! \DtkDynamicCast
40 
41  //! \return The type of the entity type - DTK_TYPE_SELECTION_DATA_SET -
43 
44  //! \CreateBase
46 
47  //! \brief Retrieves the number of Selection sets.
48  //! \return the number of Selection sets.
50 
51  //! \brief Retrieves the ith Dtk_SelectionSetPtr giving its index.
52  //! \param inPos index of the Dtk_SelectionSetPtr.
53  //! \return the ith Dtk_SelectionSetPtr.
55 
56  //! \brief Adds a Dtk_SelectionSetPtr to the selection sets pool.
57  //! \param inSelectionSet The Dtk_SelectionSetPtr to be added.
58  //! \return the Dtk_SelectionSetPtr index.
60 
61 };
62 
63 //////////////////////////////////////////////////////////////////////////
64 
65 class Dtk_FdtDataSet : public Dtk_Object
66 {
67 protected:
68 
69  struct Dtk_Handle; // Not defined here
70  Dtk_Handle *_Private; // Handle
71 
72  //! \sa Create()
74 
75  //! \sa Create(const Dtk_SelectionDataSet&)
77  inline virtual Dtk_Object* Clone() { return new Dtk_FdtDataSet(*this); }
78 
79  //! \BaseDestructor
81 
83 
84 private:
85  void _Init();
86  void _Copy(const Dtk_FdtDataSet &s);
87  void _Reset();
88  friend class Dtk_SmartPtr< Dtk_FdtDataSet >;
89 public:
90  //! \DtkDynamicType
92 
93  //! \DtkDynamicCast
95 
96  //! \return The type of the entity type - DTK_TYPE_FDT_DATA_SET -
98 
99  //! \CreateBase
101 
102  //! \brief Retrieves the number of Selection sets.
103  //! \param inPos Child element index.
104  //! \return the number of Selection sets.
106 
107  //! \brief Retrieves the ith Dtk_SelectionSetPtr giving its index.
108  //! \param inPos index of the Dtk_SelectionSetPtr.
109  //! \return the ith Dtk_SelectionSetPtr.
111 
112  //! \brief Adds a Dtk_SelectionSetPtr to the selection sets pool.
113  //! \param inSelectionSet The Dtk_SelectionSetPtr to be added.
114  //! \return the Dtk_SelectionSetPtr index.
116 
117 };
118 
119 
120 //////////////////////////////////////////////////////////////////////////
122 {
123 protected:
124 
125  struct Dtk_Handle; // Not defined here
126  Dtk_Handle *_Private; // Handle
127 
128  //! \sa Create()
130 
131  //! \sa Create(const Dtk_FdtAnnotationSet&)
133  inline virtual Dtk_Object* Clone() { return new Dtk_GlobalDataSet(*this); }
134 
135  //! \BaseDestructor
137 
139 
140 private:
141  void _Init();
142  void _Copy(const Dtk_GlobalDataSet &s);
143  void _Reset();
144  friend class Dtk_SmartPtr<Dtk_GlobalDataSet>;
145 public:
146  //! \DtkDynamicType
148 
149  //! \DtkDynamicCast
151 
152  //! \return The type of the entity type - DTK_TYPE_GLOBAL_DATA_SET -
154 
155  //! \CreateBase
157 
158  //! \brief Retrieves the SelectionDataSet.
159  //! \return the Dtk_SelectionDataSetPtr - can be null -.
161 
162  //! \brief Set The SelectionDataSet infos - for internal use only -.
163  //! \param inSelectionDataSet The Dtk_SelectionDataSetPtr to be added.
164  void SetSelectionDataSet( const Dtk_SelectionDataSetPtr& inSelectionDataSet);
165 
166  //! \brief Retrieves the FdtDataSet.
167  //! \return the Dtk_FdtDataSetPtr - can be null -.
169 
170  //! \brief Set The FdtDataSet infos - for internal use only -.
171  //! \param inFdtDataSet The Dtk_FdtDataSetPtr to be added.
172  void SetFdtDataSet( const Dtk_FdtDataSetPtr& inFdtDataSet);
173 
174 };
175 
176 
177 
178 #endif
Dtk_FdtDataSet::Dtk_FdtDataSet
Dtk_FdtDataSet(const Dtk_FdtDataSet &s)
dtk_global_data_set_ptr.hpp
Dtk_FdtDataSet::Dtk_FdtDataSet
Dtk_FdtDataSet()
Dtk_SelectionDataSet::get_type_detk
type_detk get_type_detk() const
Definition: dtk_global_data_set.hpp:42
Dtk_GlobalDataSet::_Private
Dtk_Handle * _Private
Definition: dtk_global_data_set.hpp:125
Dtk_FdtDataSet::~Dtk_FdtDataSet
~Dtk_FdtDataSet()
Destructor.
Dtk_FdtDataSet::get_type_detk
type_detk get_type_detk() const
Definition: dtk_global_data_set.hpp:97
Dtk_GlobalDataSet::Create
static Dtk_GlobalDataSetPtr Create()
Calls default constructor to allocate a new object.
Dtk_FdtDataSet::_Private
Dtk_Handle * _Private
Definition: dtk_global_data_set.hpp:69
Dtk_GlobalDataSet::get_type_detk
type_detk get_type_detk() const
Definition: dtk_global_data_set.hpp:153
Dtk_FdtDataSet::GetFdtSetByPos
Dtk_FdtSetPackage::Dtk_FdtSetPtr GetFdtSetByPos(const Dtk_Size_t inPos) const
Retrieves the ith Dtk_SelectionSetPtr giving its index.
DTK_TYPE_SELECTION_DATA_SET
@ DTK_TYPE_SELECTION_DATA_SET
Definition: define.h:446
Dtk_GlobalDataSet::SetSelectionDataSet
void SetSelectionDataSet(const Dtk_SelectionDataSetPtr &inSelectionDataSet)
Set The SelectionDataSet infos - for internal use only -.
Dtk_Size_t
size_t Dtk_Size_t
Definition: define.h:704
Dtk_GlobalDataSet::Dtk_GlobalDataSet
Dtk_GlobalDataSet()
DTK_TYPE_FDT_DATA_SET
@ DTK_TYPE_FDT_DATA_SET
Definition: define.h:448
Dtk_GlobalDataSet::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Dtk_SelectionDataSet::_Private
Dtk_Handle * _Private
Definition: dtk_global_data_set.hpp:14
Dtk_SelectionDataSet::AddSelectionSet
Dtk_Size_t AddSelectionSet(const Dtk_SelectionSetPtr &inSelectionSet)
Adds a Dtk_SelectionSetPtr to the selection sets pool.
Dtk_SelectionDataSet::Create
static Dtk_SelectionDataSetPtr Create()
Calls default constructor to allocate a new object.
Dtk_GlobalDataSet::_typeID
@ _typeID
Definition: dtk_global_data_set.hpp:138
Dtk_SelectionDataSet::Dtk_SelectionDataSet
Dtk_SelectionDataSet(const Dtk_SelectionDataSet &s)
Dtk_FdtDataSet::Clone
virtual Dtk_Object * Clone()
Definition: dtk_global_data_set.hpp:77
Dtk_FdtDataSet::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
Dtk_FdtDataSet
Definition: dtk_global_data_set.hpp:66
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:679
Dtk_SelectionDataSet::DtkDynamicType
Dtk_Int32 DtkDynamicType(const Dtk_Int32 &inId)
Retrieves the dynamic entity type.
DTK_TYPE_GLOBAL_DATA_SET
@ DTK_TYPE_GLOBAL_DATA_SET
Definition: define.h:445
dtk_fdt_set.hpp
Dtk_FdtDataSet::DtkDynamicCast
static Dtk_FdtDataSet * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
Dtk_FdtDataSet::GetNumFdtSets
Dtk_Size_t GetNumFdtSets() const
Retrieves the number of Selection sets.
Dtk_FdtDataSet::Create
static Dtk_FdtDataSetPtr Create()
Calls default constructor to allocate a new object.
util_selection_set.hpp
Dtk_SelectionDataSet::DtkDynamicCast
static Dtk_SelectionDataSet * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
type_detk
type_detk
Definition: define.h:21
Dtk_GlobalDataSet::DtkDynamicCast
static Dtk_GlobalDataSet * DtkDynamicCast(Dtk_Object *s)
Performs a dynamic cast - doesn't need RTTI -.
Dtk_FdtDataSet::AddFdtSet
Dtk_Size_t AddFdtSet(const Dtk_FdtSetPackage::Dtk_FdtSetPtr &inFdtSet)
Adds a Dtk_SelectionSetPtr to the selection sets pool.
Dtk_SelectionDataSet::GetNumSelectionSets
Dtk_Size_t GetNumSelectionSets() const
Retrieves the number of Selection sets.
Dtk_GlobalDataSet::Clone
virtual Dtk_Object * Clone()
Definition: dtk_global_data_set.hpp:133
Dtk_SelectionDataSet::~Dtk_SelectionDataSet
~Dtk_SelectionDataSet()
Destructor.
define.h
Dtk_GlobalDataSet::GetSelectionDataSet
const Dtk_SelectionDataSetPtr GetSelectionDataSet() const
Retrieves the SelectionDataSet.
Dtk_SelectionDataSet::GetSelectionSetByPos
Dtk_SelectionSetPtr GetSelectionSetByPos(const Dtk_Size_t inPos) const
Retrieves the ith Dtk_SelectionSetPtr giving its index.
Dtk_SelectionDataSet::_typeID
@ _typeID
Definition: dtk_global_data_set.hpp:27
Dtk_GlobalDataSet::~Dtk_GlobalDataSet
~Dtk_GlobalDataSet()
Destructor.
Dtk_GlobalDataSet
Definition: dtk_global_data_set.hpp:122
Dtk_GlobalDataSet::GetFdtDataSet
const Dtk_FdtDataSetPtr GetFdtDataSet() const
Retrieves the FdtDataSet.
Dtk_Object
Definition: dtk_object.hpp:8
Dtk_SelectionDataSet
Definition: dtk_global_data_set.hpp:11
Dtk_GlobalDataSet::SetFdtDataSet
void SetFdtDataSet(const Dtk_FdtDataSetPtr &inFdtDataSet)
Set The FdtDataSet infos - for internal use only -.
Dtk_FdtDataSet::_typeID
@ _typeID
Definition: dtk_global_data_set.hpp:82
Dtk_GlobalDataSet::Dtk_GlobalDataSet
Dtk_GlobalDataSet(const Dtk_GlobalDataSet &s)
dtk_object.hpp
Dtk_SelectionDataSet::Clone
virtual Dtk_Object * Clone()
Definition: dtk_global_data_set.hpp:22
Dtk_SelectionDataSet::Dtk_SelectionDataSet
Dtk_SelectionDataSet()