Public Member Functions | |
Dtk_MetaDataWithUnit (const MetaDataTypeEnum &inEnumType, Dtk_string inType, Dtk_string inTitle, Dtk_string inValue, Dtk_string inUnit) | |
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_string | GetUnits () |
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... | |
virtual | ~Dtk_MetaDataWithUnit () |
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_MetaDataWithUnit * | 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 } |
enum | { _typeID = DTK_TYPE_METADATAWITHUNIT } |
Protected Member Functions | |
void | _Copy (const Dtk_MetaData &inToBeCopied) |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _reset () |
Protected Attributes | |
Dtk_Handle * | _Private |
Dtk_string | _Units |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_MetaDataWithUnit > |
|
inherited |
Dtk_MetaDataWithUnit::Dtk_MetaDataWithUnit | ( | const MetaDataTypeEnum & | inEnumType, |
Dtk_string | inType, | ||
Dtk_string | inTitle, | ||
Dtk_string | inValue, | ||
Dtk_string | inUnit | ||
) |
|
virtual |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
staticinherited |
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") |
|
staticinherited |
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") |
|
staticinherited |
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 |
|
inherited |
Get the Category of the MetaData .
|
inherited |
Get the Formula and its Estimated value of the MetaData .
[out] | outEstimatedValue | : Estimated value of formula |
|
inherited |
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.
|
inherited |
Get the Title of the MetaData .
|
inherited |
Get the Type of the MetaData .
Dtk_string Dtk_MetaDataWithUnit::GetUnits | ( | ) |
|
inherited |
Get the Units of the MetaData.
[out] | outUnits | : the units string if present, empty string otherwise |
|
inherited |
Get the Value of the MetaData .
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Retrieves the Dtk_MetaDataPtr type - read only -.
|
staticinherited |
|
inherited |
|
inherited |
Set the Category of the MetaData .
|
inherited |
Set the MetaData as Formula .
[in] | inFormula | : Formula |
[in] | inEstimatedValue | : Estimated value of formula |
[in] | inResultType | : Type of the EstimateValue |
|
inherited |
|
inherited |
Set the Title of the MetaData .
|
inherited |
Set the Type of the MetaData .
|
inherited |
Set the Value of the MetaData .
|
inherited |
|
inherited |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -.
|
inherited |
|
inherited |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -.
|
inherited |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -.
|
inherited |
Retrieves the Dtk_MetaDataPtr as a property - if exists -.
|
inherited |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -.
|
inherited |
Retrieves the Dtk_MetaDataPtr as a parameter - if exists -.
|
friend |
|
protectedinherited |
|
protected |
|
protectedinherited |