29#ifndef SN_XML_READER_H
30#define SN_XML_READER_H
32#include "foundation/PxSimpleTypes.h"
33#include "extensions/PxRepXSimpleType.h"
36 namespace Sn {
struct XmlNode; }
47 virtual bool read(
const char* inName,
const char*& outData ) = 0;
85 virtual void addOrGotoChild(
const char* name ) = 0;
88 virtual void setCurrentItemValue(
const char* value ) = 0;
92 virtual bool removeChild(
const char* name ) = 0;
93 virtual void release() = 0;
95 bool renameProperty(
const char* oldName,
const char* newName )
101 removeChild( oldName );
102 addOrGotoChild( newName );
103 setCurrentItemValue( value );
109 bool readAndRemoveProperty(
const char* name,
const char*& outValue )
111 bool retval =
read( name, outValue );
112 if ( retval ) removeChild( name );
116 bool writePropertyIfNotEmpty(
const char* name,
const char* value )
118 if ( value && *value )
120 addOrGotoChild( name );
121 setCurrentItemValue( value );
Definition SnXmlReader.h:78
Definition SnXmlReader.h:42
virtual bool read(const char *inName, PxSerialObjectId &outId)=0
virtual const char * getCurrentItemName()=0
virtual void pushCurrentContext()=0
virtual bool gotoNextSibling()=0
virtual bool read(const char *inName, const char *&outData)=0
virtual const char * getCurrentItemValue()=0
virtual void popCurrentContext()=0
virtual bool leaveChild()=0
virtual XmlReader * getParentReader()=0
virtual bool gotoFirstChild()=0
virtual bool gotoChild(const char *inName)=0
virtual PxU32 countChildren()=0
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxU64 PxSerialObjectId
ID type for PxBase objects in a PxCollection.
Definition PxSerialFramework.h:61
Definition SnXmlImpl.h:103