82 void setContentFromString(
const std::string &str );
87 void getContentAsString( std::string &str );
92 void setContentFromPointer(
void * ptr );
97 void * getContentAsPointer()
const;
103 void setContentFromStruct(
const T &data )
105 content.resize(
sizeof(data) );
106 T * ptr =
reinterpret_cast< T*
>( &content[0] );
114 void getContentAsStruct( T &data )
const
117 ASSERT_(content.size() ==
sizeof(data) );
118 data = *
reinterpret_cast< T*
>( &content[0] );