CMetaDataGroup¶
-
class
Lib3MF
::
CMetaDataGroup
: public CBase¶ -
Lib3MF_uint32
GetMetaDataCount
()¶ returns the number of metadata in this metadatagroup
- Returns
returns the number metadata
-
PMetaData
GetMetaData
(const Lib3MF_uint32 nIndex)¶ returns a metadata value within this metadatagroup
- Parameters
nIndex – Index of the Metadata.
- Returns
an instance of the metadata
-
PMetaData
GetMetaDataByKey
(const std::string &sNameSpace, const std::string &sName)¶ returns a metadata value within this metadatagroup
- Parameters
sNameSpace – the namespace of the metadata
sName – the name of the Metadata
- Returns
an instance of the metadata
-
void
RemoveMetaDataByIndex
(const Lib3MF_uint32 nIndex)¶ removes metadata by index from the model.
- Parameters
nIndex – Index of the metadata to remove
-
void
RemoveMetaData
(CMetaData *pTheMetaData)¶ removes metadata from the model.
- Parameters
pTheMetaData – The metadata to remove
-
PMetaData
AddMetaData
(const std::string &sNameSpace, const std::string &sName, const std::string &sValue, const std::string &sType, const bool bMustPreserve)¶ adds a new metadata to this metadatagroup
- Parameters
sNameSpace – the namespace of the metadata
sName – the name of the metadata
sValue – the value of the metadata
sType – the type of the metadata
bMustPreserve – shuold the metadata be preserved
- Returns
a new instance of the metadata
-
Lib3MF_uint32
-
typedef std::shared_ptr<CMetaDataGroup>
Lib3MF
::
PMetaDataGroup
¶ Shared pointer to CMetaDataGroup to easily allow reference counting.