Overture
Version 25
|
#include <EntityTag.h>
Public Member Functions | |
EntityTag (const std::string name="", const void *data=0, const bool copy_data=false, const int data_size=0) | |
the default constructor initialized the EntityTag to a nil tag | |
EntityTag (const EntityTag &et) | |
a simple copy constructor; note it will be deep or shallow depending on the value of et.copyData | |
virtual | ~EntityTag () |
bool | is_nil () const |
return true if this tag has nothing stored in it | |
virtual int | setData (const std::string name, const void *data, const bool copy_data=false, const int data_size=0) |
set the data in the tag; note this will be a shallow or deep copy depending on the value of copy_data | |
virtual int | getData (void *&data, std::string &name) |
obtain a pointer to the data and the name of the tag | |
virtual const void * | getData () const |
return a const pointer to the data | |
virtual int | getDataSize () const |
obtain the storage size of the data | |
bool | copiesData () const |
copiesData returns true if the tag performs a deep copy of the data it stores | |
std::string | getName () const |
obtain the name of the tag, this name can be different for each instance | |
virtual std::string | getClassName () const |
obtain the classname of the tag; this name is the same for all instances | |
virtual int | get (const GenericDataBase &dir, const aString &name) |
put to an Overture GenericDataBase | |
virtual int | put (GenericDataBase &dir, const aString &name) const |
get from an Overture GenericDataBase | |
Protected Member Functions | |
void | destroy () |
EntityTag can be used to manage generic tagging information for UnstructuredMappings. It will either shallow or deep copy the data given to it. Also, it is usefull as a base class for user defined tag types.
|
inline |
|
inline |
a simple copy constructor; note it will be deep or shallow depending on the value of et.copyData
References setData().
|
inlinevirtual |
References destroy().
|
inline |
copiesData returns true if the tag performs a deep copy of the data it stores
Referenced by UnstructuredMapping::operator=().
|
inlineprotected |
Referenced by setData(), and ~EntityTag().
|
virtual |
put to an Overture GenericDataBase
References aString, GenericDataBase::find(), GenericDataBase::get(), and GenericDataBase::virtualConstructor().
|
inlinevirtual |
obtain the classname of the tag; this name is the same for all instances
|
virtual |
obtain a pointer to the data and the name of the tag
Referenced by UnstructuredMapping::getTagData(), and UnstructuredMapping::operator=().
|
inlinevirtual |
return a const pointer to the data
|
inlinevirtual |
obtain the storage size of the data
Referenced by UnstructuredMapping::operator=().
|
inline |
obtain the name of the tag, this name can be different for each instance
Referenced by UnstructuredMapping::deleteTag(), and UnstructuredMapping::operator=().
|
inline |
return true if this tag has nothing stored in it
|
virtual |
get from an Overture GenericDataBase
References aString, GenericDataBase::create(), GenericDataBase::put(), and GenericDataBase::virtualConstructor().
|
virtual |
set the data in the tag; note this will be a shallow or deep copy depending on the value of copy_data
References destroy().
Referenced by EntityTag(), and UnstructuredMapping::setTagData().