This is the Dtk_MetaData Class.
The Dtk_MetaDataPtr object is used to store any additional informations about Dtk_ComponentPtr or Dtk_NodePtr.
It can be either properties or parameters for example.
.
More...
Data Structures | |
struct | Dtk_Handle |
Public Member Functions | |
Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
Retrieves the dynamic entity type. More... | |
virtual int | DtkDynamicType (const int &inId)=0 |
virtual void | dump (FILE *file=stdout) |
const Dtk_string & | GetCategory () const |
Get the Category of the MetaData . More... | |
Dtk_string | GetFormula (Dtk_string &outEstimatedValue) |
Get the Formula and its Estimated value of the MetaData . More... | |
Dtk_ErrorStatus | GetFormula (Dtk_string &outFormula, Dtk_string &outEstimatedValue, Dtk_string &outTitle, Dtk_string &outResultType) |
Get the Formula Type of result and its Estimated value of the MetaData . More... | |
virtual Dtk_Size_t | GetSize () const |
const Dtk_string & | GetTitle () const |
Get the Title of the MetaData . More... | |
const Dtk_string & | GetType () const |
Get the Type of the MetaData . More... | |
Dtk_ErrorStatus | GetUnits (Dtk_string &outUnits) const |
Get the Units of the MetaData. More... | |
const Dtk_string & | GetValue () const |
Get the Value of the MetaData . More... | |
Dtk_bool | IsBoolean () const |
Dtk_bool | IsDate () const |
Dtk_bool | IsFormula () const |
Dtk_bool | IsInteger () const |
Dtk_bool | IsNull () const |
Dtk_bool | IsReal () const |
Dtk_bool | IsReference () const |
Dtk_bool | IsString () const |
const MetaDataTypeEnum & | MetaDataType () const |
Retrieves the Dtk_MetaDataPtr type - read only -. More... | |
SetAsDeprecated ("2022.1", "Use GetUnits(Dtk_string& outUnits) method instead.") Dtk_string GetUnits() const | |
Get the Units of the MetaData . More... | |
void | SetCategory (Dtk_string in) |
Set the Category of the MetaData . More... | |
void | SetFormula (Dtk_string inFormula, Dtk_string inEstimatedValue, Dtk_string inTitle, Dtk_string inResultType) |
Set the MetaData as Formula . More... | |
void | SetMetaDataType (const MetaDataTypeEnum &inType) |
void | SetTitle (Dtk_string in) |
Set the Title of the MetaData . More... | |
void | SetType (Dtk_string in) |
Set the Type of the MetaData . More... | |
void | SetValue (Dtk_string in) |
Set the Value of the MetaData . More... | |
Dtk_PropertiesPtr | ToConfigurationProperty () |
Dtk_PropertiesPtr | ToElectricalProperty () |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -. More... | |
Dtk_PropertiesPtr | ToFileProperty () |
Dtk_PropertiesPtr | ToMassProperty () |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -. More... | |
Dtk_PropertiesPtr | ToParameter () |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -. More... | |
Dtk_PropertiesPtr | ToProperty () |
Retrieves the Dtk_MetaDataPtr as a property - if exists -. More... | |
Dtk_PropertiesPtr | ToUserAttribute () |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -. More... | |
Dtk_PropertiesPtr | ToUserExpression () |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -. More... | |
Static Public Member Functions | |
static Dtk_MetaDataPtr | CreateMetaData (const MetaDataTypeEnum &inEnumType, Dtk_string inTitle, Dtk_string inValue, Dtk_string inValueType=Dtk_string(L"STRING")) |
Create a Dtk_MetaDataPtr . More... | |
static Dtk_MetaDataPtr | CreateMetaDataWithUnits (const MetaDataTypeEnum &inEnumType, Dtk_string inTitle, Dtk_string inValue, Dtk_string inUnits, Dtk_string inValueType=Dtk_string(L"STRING")) |
Create a Dtk_MetaDataPtr . More... | |
static Dtk_MetaDataPtr | CreatePropertiesMetaData (const Dtk_PropertiesPtr &inObject) |
Create a property Dtk_MetaDataPtr from a Dtk_PropertiesPtr. More... | |
static Dtk_MetaData * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
static Dtk_string | MetaDataTypeEnumToString (const MetaDataTypeEnum &inEnum) |
Protected Types | |
enum | { _typeID = DTK_TYPE_METADATA } |
Protected Member Functions | |
void | _Copy (const Dtk_MetaData &inToBeCopied) |
void | _copy (const Dtk_Object &s) |
void | _Init () |
void | _init () |
void | _Reset () |
void | _reset () |
Dtk_MetaData (const Dtk_MetaData &inToBeCopied) | |
Copy constructor. More... | |
Dtk_MetaData (const MetaDataTypeEnum &inType) | |
Dtk_MetaData (Dtk_MetaData &&inToBeMoved) DTK_NOEXCEPT | |
virtual | ~Dtk_MetaData () |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_MetaData > |
This is the Dtk_MetaData Class.
The Dtk_MetaDataPtr object is used to store any additional informations about Dtk_ComponentPtr or Dtk_NodePtr.
It can be either properties or parameters for example.
.
This is the Dtk_MetaDataGroup Class.
The Dtk_MetaDataGroupPtr object is used to store a group of Dtk_MetaDataPtr in a Dtk_ComponentPtr or a or Dtk_NodePtr.
The children metadata may or may not be also stored as single metadata but if it is the case, then their category should be defined with the name of their Dtk_MetaDataGroup in order to be distinguished from metadata only accessible alone.
It is defined by a name and a tab of metadatas.
.
|
protected |
Copy constructor.
inToBeCopied | Object to copy. |
|
protected |
|
protected |
|
protectedvirtual |
Destructor.
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
static |
Create a Dtk_MetaDataPtr .
[in] | inEnumType | : the type of the metadata |
[in] | inTitle | : the title of the metadata |
[in] | inValue | : the value of the metadata |
[in] | inType | : the type of value (default is "STRING") |
|
static |
Create a Dtk_MetaDataPtr .
[in] | inEnumType | : the type of the metadata |
[in] | inTitle | : the title of the metadata |
[in] | inValue | : the value of the metadata |
[in] | inUnits | : the unit of the metadata |
[in] | inType | : the type of value (default is "STRING") |
|
static |
Create a property Dtk_MetaDataPtr from a Dtk_PropertiesPtr.
inObject | Property data. |
|
static |
Performs a dynamic cast - doesn't need RTTI -.
Retrieves the dynamic entity type.
|
pure virtualinherited |
Implemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshPolyline, Dtk_MeshSurface, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Constraint, Dtk_ConstraintReference, Dtk_AxisSystem, Dtk_Preview, Dtk_Entity, Dtk_picture, Dtk_OverrideSet, Dtk_OverrideInfo, Dtk_MainDoc, Dtk_Component, Dtk_Node, Dtk_DocElement, Dtk_Log, and Dtk_Properties.
|
virtualinherited |
const Dtk_string& Dtk_MetaData::GetCategory | ( | ) | const |
Get the Category of the MetaData .
Dtk_string Dtk_MetaData::GetFormula | ( | Dtk_string & | outEstimatedValue | ) |
Get the Formula and its Estimated value of the MetaData .
[out] | outEstimatedValue | : Estimated value of formula |
Dtk_ErrorStatus Dtk_MetaData::GetFormula | ( | Dtk_string & | outFormula, |
Dtk_string & | outEstimatedValue, | ||
Dtk_string & | outTitle, | ||
Dtk_string & | outResultType | ||
) |
Get the Formula Type of result and its Estimated value of the MetaData .
[out] | outEstimatedValue | : Estimated value of formula |
[out] | outType | : Type of Estimated value |
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Entity, and Dtk_Info.
const Dtk_string& Dtk_MetaData::GetTitle | ( | ) | const |
Get the Title of the MetaData .
const Dtk_string& Dtk_MetaData::GetType | ( | ) | const |
Get the Type of the MetaData .
Dtk_ErrorStatus Dtk_MetaData::GetUnits | ( | Dtk_string & | outUnits | ) | const |
Get the Units of the MetaData.
[out] | outUnits | : the units string if present, empty string otherwise |
const Dtk_string& Dtk_MetaData::GetValue | ( | ) | const |
Get the Value of the MetaData .
Dtk_bool Dtk_MetaData::IsBoolean | ( | ) | const |
Dtk_bool Dtk_MetaData::IsDate | ( | ) | const |
Dtk_bool Dtk_MetaData::IsFormula | ( | ) | const |
Dtk_bool Dtk_MetaData::IsInteger | ( | ) | const |
Dtk_bool Dtk_MetaData::IsNull | ( | ) | const |
Dtk_bool Dtk_MetaData::IsReal | ( | ) | const |
Dtk_bool Dtk_MetaData::IsReference | ( | ) | const |
Dtk_bool Dtk_MetaData::IsString | ( | ) | const |
const MetaDataTypeEnum& Dtk_MetaData::MetaDataType | ( | ) | const |
Retrieves the Dtk_MetaDataPtr type - read only -.
|
static |
Dtk_MetaData::SetAsDeprecated | ( | "2022.1" | , |
"Use GetUnits(Dtk_string& outUnits) method instead." | |||
) | const |
void Dtk_MetaData::SetCategory | ( | Dtk_string | in | ) |
Set the Category of the MetaData .
void Dtk_MetaData::SetFormula | ( | Dtk_string | inFormula, |
Dtk_string | inEstimatedValue, | ||
Dtk_string | inTitle, | ||
Dtk_string | inResultType | ||
) |
Set the MetaData as Formula .
[in] | inFormula | : Formula |
[in] | inEstimatedValue | : Estimated value of formula |
[in] | inResultType | : Type of the EstimateValue |
void Dtk_MetaData::SetMetaDataType | ( | const MetaDataTypeEnum & | inType | ) |
void Dtk_MetaData::SetTitle | ( | Dtk_string | in | ) |
Set the Title of the MetaData .
void Dtk_MetaData::SetType | ( | Dtk_string | in | ) |
Set the Type of the MetaData .
void Dtk_MetaData::SetValue | ( | Dtk_string | in | ) |
Set the Value of the MetaData .
Dtk_PropertiesPtr Dtk_MetaData::ToConfigurationProperty | ( | ) |
Dtk_PropertiesPtr Dtk_MetaData::ToElectricalProperty | ( | ) |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -.
Dtk_PropertiesPtr Dtk_MetaData::ToFileProperty | ( | ) |
Dtk_PropertiesPtr Dtk_MetaData::ToMassProperty | ( | ) |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -.
Dtk_PropertiesPtr Dtk_MetaData::ToParameter | ( | ) |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -.
Dtk_PropertiesPtr Dtk_MetaData::ToProperty | ( | ) |
Retrieves the Dtk_MetaDataPtr as a property - if exists -.
Dtk_PropertiesPtr Dtk_MetaData::ToUserAttribute | ( | ) |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -.
Dtk_PropertiesPtr Dtk_MetaData::ToUserExpression | ( | ) |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -.
|
friend |
|
protected |
|
protectedinherited |