DATAKIT API  V2025.1
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 
19 
22  inline virtual Dtk_Object* Clone() { return new Dtk_SelectionDataSet(*this); }
23 
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:
37 
40 
43 
46 
50 
55 
60 
61 };
62 
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 
74 
77  inline virtual Dtk_Object* Clone() { return new Dtk_FdtDataSet(*this); }
78 
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:
92 
95 
98 
101 
106 
111 
116 
117 };
118 
119 
122 {
123 protected:
124 
125  struct Dtk_Handle; // Not defined here
126  Dtk_Handle *_Private; // Handle
127 
130 
133  inline virtual Dtk_Object* Clone() { return new Dtk_GlobalDataSet(*this); }
134 
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:
148 
151 
154 
157 
161 
164  void SetSelectionDataSet( const Dtk_SelectionDataSetPtr& inSelectionDataSet);
165 
169 
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()
Base constructor.
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:455
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:712
Dtk_GlobalDataSet::Dtk_GlobalDataSet
Dtk_GlobalDataSet()
DTK_TYPE_FDT_DATA_SET
@ DTK_TYPE_FDT_DATA_SET
Definition: define.h:457
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()
Base constructor.
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:687
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:454
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()
Base constructor.
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:32
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()