1 #ifndef OV_ENTITY_TAG_H
2 #define OV_ENTITY_TAG_H
17 EntityTag(
const std::string name=
"",
const void *data=0,
const bool copy_data=
false,
const int data_size=0 )
18 : tagName(
""), tagData(0), copyData(false) , dataSize(0)
19 { this->
setData( name , data, copy_data, data_size ); }
23 { this->
setData( et.tagName , et.tagData, et.copyData, et.dataSize ); }
29 inline bool is_nil()
const {
return tagName==
"" && tagData==0; }
32 virtual int setData(
const std::string name,
const void *data,
const bool copy_data=
false,
const int data_size=0 );
34 virtual int getData(
void * &data, std::string &name );
36 virtual const void *
getData()
const {
return tagData; }
43 std::string
getName()
const {
return tagName; }
55 if ( tagData && copyData )
56 delete [] (
char *)tagData;
64 static std::string className;