CMetaData

class Lib3MF::CMetaData : public CBase
std::string GetNameSpace()

returns the namespace URL of the metadata

Returns:

the namespace URL of the metadata

void SetNameSpace(const std::string &sNameSpace)

sets a new namespace URL of the metadata

Parameters:

sNameSpace – the new namespace URL of the metadata

std::string GetName()

returns the name of a metadata

Returns:

the name of the metadata

void SetName(const std::string &sName)

sets a new name of a metadata

Parameters:

sName – the new name of the metadata

std::string GetKey()

returns the (namespace+name) of a metadata

Returns:

the key (namespace+name) of the metadata

bool GetMustPreserve()

returns, whether a metadata must be preserved

Returns:

returns, whether a metadata must be preserved

void SetMustPreserve(const bool bMustPreserve)

sets whether a metadata must be preserved

Parameters:

bMustPreserve – a new value whether a metadata must be preserved

std::string GetType()

returns the type of a metadata

Returns:

the type of the metadata

void SetType(const std::string &sType)

sets a new type of a metadata. This must be a simple XML type

Parameters:

sType – a new type of the metadata

std::string GetValue()

returns the value of the metadata

Returns:

the value of the metadata

void SetValue(const std::string &sValue)

sets a new value of the metadata

Parameters:

sValue – a new value of the metadata

typedef std::shared_ptr<CMetaData> Lib3MF::PMetaData

Shared pointer to CMetaData to easily allow reference counting.