mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-27 03:10:54 +00:00
CHANGED: #1471 CGroupHeader fields can now we serialized.
This commit is contained in:
parent
64eb2a86f2
commit
1f43277edc
2 changed files with 14 additions and 0 deletions
|
@ -44,6 +44,7 @@ namespace NLGUI
|
|||
|
||||
std::string getProperty( const std::string &name ) const;
|
||||
void setProperty( const std::string &name, const std::string &value );
|
||||
xmlNodePtr serialize( xmlNodePtr parentNode, const char *type ) const;
|
||||
|
||||
// from CInterfaceGroup
|
||||
virtual bool parse(xmlNodePtr cur, CInterfaceGroup * parentGroup);
|
||||
|
|
|
@ -238,6 +238,19 @@ namespace NLGUI
|
|||
return CGroupList::setProperty( name, value );
|
||||
}
|
||||
|
||||
|
||||
xmlNodePtr CGroupHeader::serialize( xmlNodePtr parentNode, const char *type ) const
|
||||
{
|
||||
xmlNodePtr node = CGroupList::serialize( parentNode, type );
|
||||
if( node == NULL )
|
||||
return NULL;
|
||||
|
||||
xmlSetProp( node, BAD_CAST "type", BAD_CAST "header" );
|
||||
xmlSetProp( node, BAD_CAST "header_max_size", BAD_CAST toString( _HeaderMaxSize ).c_str() );
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
// *****************************************************************************************************************
|
||||
bool CGroupHeader::parse(xmlNodePtr cur, CInterfaceGroup * parentGroup)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue