@ -63,17 +63,17 @@ public:
//void* operator new( size_t nSize );
//void operator delete( void *ptr );
virtual void DeleteThis ( ) { }
void DeleteThis ( ) override { }
//! Create new XML node.
XmlNodeRef createNode ( const char * tag ) ;
XmlNodeRef createNode ( const char * tag ) override ;
// Summary:
// Reference counting.
virtual void AddRef ( ) { + + m_pData - > nRefCount ; } ;
void AddRef ( ) override { + + m_pData - > nRefCount ; } ;
// Notes:
// When ref count reach zero XML node dies.
virtual void Release ( )
void Release ( ) override
{
if ( - - m_pData - > nRefCount < = 0 )
{
@ -82,105 +82,105 @@ public:
} ;
//! Get XML node tag.
const char * getTag ( ) const { return _string ( _node ( ) - > nTagStringOffset ) ; } ;
void setTag ( [ [ maybe_unused ] ] const char * tag ) { assert ( 0 ) ; } ;
const char * getTag ( ) const override { return _string ( _node ( ) - > nTagStringOffset ) ; } ;
void setTag ( [ [ maybe_unused ] ] const char * tag ) override { assert ( 0 ) ; } ;
//! Return true if given tag is equal to node tag.
bool isTag ( const char * tag ) const ;
bool isTag ( const char * tag ) const override ;
//! Get XML Node attributes.
virtual int getNumAttributes ( ) const { return ( int ) _node ( ) - > nAttributeCount ; } ;
int getNumAttributes ( ) const override { return ( int ) _node ( ) - > nAttributeCount ; } ;
//! Return attribute key and value by attribute index.
virtual bool getAttributeByIndex ( int index , const char * * key , const char * * value ) ;
bool getAttributeByIndex ( int index , const char * * key , const char * * value ) override ;
//! Return attribute key and value by attribute index, string version.
virtual bool getAttributeByIndex ( int index , XmlString & key , XmlString & value ) ;
virtual void shareChildren ( [ [ maybe_unused ] ] const XmlNodeRef & fromNode ) { assert ( 0 ) ; } ;
virtual void copyAttributes ( XmlNodeRef fromNode ) { assert ( 0 ) ; } ;
void shareChildren ( [ [ maybe_unused ] ] const XmlNodeRef & fromNode ) override { assert ( 0 ) ; } ;
void copyAttributes ( XmlNodeRef fromNode ) override { assert ( 0 ) ; } ;
//! Get XML Node attribute for specified key.
const char * getAttr ( const char * key ) const ;
const char * getAttr ( const char * key ) const override ;
//! Get XML Node attribute for specified key.
// Returns true if the attribute exists, false otherwise.
bool getAttr ( const char * key , const char * * value ) const ;
bool getAttr ( const char * key , const char * * value ) const override ;
//! Check if attributes with specified key exist.
bool haveAttr ( const char * key ) const ;
bool haveAttr ( const char * key ) const override ;
XmlNodeRef newChild ( [ [ maybe_unused ] ] const char * tagName ) { assert ( 0 ) ; return 0 ; } ;
void replaceChild ( [ [ maybe_unused ] ] int inChild , [ [ maybe_unused ] ] const XmlNodeRef & node ) { assert ( 0 ) ; } ;
void insertChild ( [ [ maybe_unused ] ] int inChild , [ [ maybe_unused ] ] const XmlNodeRef & node ) { assert ( 0 ) ; } ;
void addChild ( [ [ maybe_unused ] ] const XmlNodeRef & node ) { assert ( 0 ) ; } ;
void removeChild ( [ [ maybe_unused ] ] const XmlNodeRef & node ) { assert ( 0 ) ; } ;
XmlNodeRef newChild ( [ [ maybe_unused ] ] const char * tagName ) override { assert ( 0 ) ; return 0 ; } ;
void replaceChild ( [ [ maybe_unused ] ] int inChild , [ [ maybe_unused ] ] const XmlNodeRef & node ) override { assert ( 0 ) ; } ;
void insertChild ( [ [ maybe_unused ] ] int inChild , [ [ maybe_unused ] ] const XmlNodeRef & node ) override { assert ( 0 ) ; } ;
void addChild ( [ [ maybe_unused ] ] const XmlNodeRef & node ) override { assert ( 0 ) ; } ;
void removeChild ( [ [ maybe_unused ] ] const XmlNodeRef & node ) override { assert ( 0 ) ; } ;
//! Remove all child nodes.
void removeAllChilds ( ) { assert ( 0 ) ; } ;
void removeAllChilds ( ) override { assert ( 0 ) ; } ;
//! Get number of child XML nodes.
int getChildCount ( ) const { return ( int ) _node ( ) - > nChildCount ; } ;
int getChildCount ( ) const override { return ( int ) _node ( ) - > nChildCount ; } ;
//! Get XML Node child nodes.
XmlNodeRef getChild ( int i ) const ;
XmlNodeRef getChild ( int i ) const override ;
//! Find node with specified tag.
XmlNodeRef findChild ( const char * tag ) const ;
XmlNodeRef findChild ( const char * tag ) const override ;
void deleteChild ( [ [ maybe_unused ] ] const char * tag ) { assert ( 0 ) ; } ;
void deleteChildAt ( [ [ maybe_unused ] ] int nIndex ) { assert ( 0 ) ; } ;
void deleteChildAt ( [ [ maybe_unused ] ] int nIndex ) override { assert ( 0 ) ; } ;
//! Get parent XML node.
XmlNodeRef getParent ( ) const ;
XmlNodeRef getParent ( ) const override ;
//! Returns content of this node.
const char * getContent ( ) const { return _string ( _node ( ) - > nContentStringOffset ) ; } ;
void setContent ( [ [ maybe_unused ] ] const char * str ) { assert ( 0 ) ; } ;
const char * getContent ( ) const override { return _string ( _node ( ) - > nContentStringOffset ) ; } ;
void setContent ( [ [ maybe_unused ] ] const char * str ) override { assert ( 0 ) ; } ;
XmlNodeRef clone ( ) { assert ( 0 ) ; return 0 ; } ;
XmlNodeRef clone ( ) override { assert ( 0 ) ; return 0 ; } ;
//! Returns line number for XML tag.
int getLine ( ) const { return 0 ; } ;
int getLine ( ) const override { return 0 ; } ;
//! Set line number in xml.
void setLine ( [ [ maybe_unused ] ] int line ) { assert ( 0 ) ; } ;
void setLine ( [ [ maybe_unused ] ] int line ) override { assert ( 0 ) ; } ;
//! Returns XML of this node and sub nodes.
virtual IXmlStringData* getXMLData ( [ [ maybe_unused ] ] int nReserveMem = 0 ) const { assert ( 0 ) ; return 0 ; } ;
XmlString getXML ( [ [ maybe_unused ] ] int level = 0 ) const { assert ( 0 ) ; return " " ; } ;
bool saveToFile ( [ [ maybe_unused ] ] const char * fileName ) { assert ( 0 ) ; return false ; } ; // saves in one huge chunk
bool saveToFile ( [ [ maybe_unused ] ] const char * fileName , [ [ maybe_unused ] ] size_t chunkSizeBytes , [ [ maybe_unused ] ] AZ : : IO : : HandleType fileHandle = AZ : : IO : : InvalidHandle ) { assert ( 0 ) ; return false ; } ; // save in small memory chunks
IXmlStringData* getXMLData ( [ [ maybe_unused ] ] int nReserveMem = 0 ) const override { assert ( 0 ) ; return 0 ; } ;
XmlString getXML ( [ [ maybe_unused ] ] int level = 0 ) const override { assert ( 0 ) ; return " " ; } ;
bool saveToFile ( [ [ maybe_unused ] ] const char * fileName ) override { assert ( 0 ) ; return false ; } ; // saves in one huge chunk
bool saveToFile ( [ [ maybe_unused ] ] const char * fileName , [ [ maybe_unused ] ] size_t chunkSizeBytes , [ [ maybe_unused ] ] AZ : : IO : : HandleType fileHandle = AZ : : IO : : InvalidHandle ) override { assert ( 0 ) ; return false ; } ; // save in small memory chunks
//! Set new XML Node attribute (or override attribute with same key).
using IXmlNode : : setAttr ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const char * value ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] int value ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] unsigned int value ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] int64 value ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] uint64 value , [ [ maybe_unused ] ] bool useHexFormat = true /* ignored */ ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] float value ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] f64 value ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const Vec2 & value ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const Ang3 & value ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const Vec3 & value ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const Vec4 & value ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const Quat & value ) { assert ( 0 ) ; } ;
void delAttr ( [ [ maybe_unused ] ] const char * key ) { assert ( 0 ) ; } ;
void removeAllAttributes ( ) { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const char * value ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] int value ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] unsigned int value ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] int64 value ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] uint64 value , [ [ maybe_unused ] ] bool useHexFormat = true /* ignored */ ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] float value ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] f64 value ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const Vec2 & value ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const Ang3 & value ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const Vec3 & value ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const Vec4 & value ) override { assert ( 0 ) ; } ;
void setAttr ( [ [ maybe_unused ] ] const char * key , [ [ maybe_unused ] ] const Quat & value ) override { assert ( 0 ) ; } ;
void delAttr ( [ [ maybe_unused ] ] const char * key ) override { assert ( 0 ) ; } ;
void removeAllAttributes ( ) override { assert ( 0 ) ; } ;
//! Get attribute value of node.
bool getAttr ( const char * key , int & value ) const ;
bool getAttr ( const char * key , unsigned int & value ) const ;
bool getAttr ( const char * key , int64 & value ) const ;
bool getAttr ( const char * key , uint64 & value , bool useHexFormat = true /* ignored */ ) const ;
bool getAttr ( const char * key , float & value ) const ;
bool getAttr ( const char * key , f64 & value ) const ;
bool getAttr ( const char * key , bool & value ) const ;
bool getAttr ( const char * key , XmlString & value ) const { const char * v ( NULL ) ; bool boHasAttribute ( getAttr ( key , & v ) ) ; value = v ; return boHasAttribute ; }
bool getAttr ( const char * key , Vec2 & value ) const ;
bool getAttr ( const char * key , Ang3 & value ) const ;
bool getAttr ( const char * key , Vec3 & value ) const ;
bool getAttr ( const char * key , Vec4 & value ) const ;
bool getAttr ( const char * key , Quat & value ) const ;
bool getAttr ( const char * key , ColorB & value ) const ;
bool getAttr ( const char * key , int & value ) const override ;
bool getAttr ( const char * key , unsigned int & value ) const override ;
bool getAttr ( const char * key , int64 & value ) const override ;
bool getAttr ( const char * key , uint64 & value , bool useHexFormat = true /* ignored */ ) const override ;
bool getAttr ( const char * key , float & value ) const override ;
bool getAttr ( const char * key , f64 & value ) const override ;
bool getAttr ( const char * key , bool & value ) const override ;
bool getAttr ( const char * key , XmlString & value ) const override { const char * v ( NULL ) ; bool boHasAttribute ( getAttr ( key , & v ) ) ; value = v ; return boHasAttribute ; }
bool getAttr ( const char * key , Vec2 & value ) const override ;
bool getAttr ( const char * key , Ang3 & value ) const override ;
bool getAttr ( const char * key , Vec3 & value ) const override ;
bool getAttr ( const char * key , Vec4 & value ) const override ;
bool getAttr ( const char * key , Quat & value ) const override ;
bool getAttr ( const char * key , ColorB & value ) const override ;
private :
//////////////////////////////////////////////////////////////////////////
@ -217,7 +217,7 @@ private:
}
protected :
virtual void setParent ( [ [ maybe_unused ] ] const XmlNodeRef & inRef ) { assert ( 0 ) ; }
void setParent ( [ [ maybe_unused ] ] const XmlNodeRef & inRef ) override { assert ( 0 ) ; }
//////////////////////////////////////////////////////////////////////////
private :