Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter Class Reference

Public Member Functions

template<typename ... Args>
bool Load (WriteBuffer &writeBuffer, Args &&... args)
 
int GetElementName (const std::string &name)
 
int GetAttributeName (const std::string &name)
 

Protected Member Functions

int GetName (int &totalSize, std::unordered_map< std::string, int > &names, const std::string &name)
 
void OutputNames (WriteBuffer &writeBuffer, const std::unordered_map< std::string, int > &names) const
 
template<typename ... Args>
bool OutputElements (WriteBuffer &, Args...)
 
template<>
bool OutputElements (WriteBuffer &writeBuffer, xmlNodePtr &&node)
 

Protected Attributes

int m_ElementSize = 0
 
int m_AttributeSize = 0
 
std::unordered_map< std::string, int > m_ElementIDs
 
std::unordered_map< std::string, int > m_AttributeIDs
 

Member Function Documentation

◆ GetAttributeName()

int anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::GetAttributeName ( const std::string &  name)
inline

◆ GetElementName()

int anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::GetElementName ( const std::string &  name)
inline

◆ GetName()

int anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::GetName ( int &  totalSize,
std::unordered_map< std::string, int > &  names,
const std::string &  name 
)
inlineprotected

◆ Load()

template<typename ... Args>
bool anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::Load ( WriteBuffer writeBuffer,
Args &&...  args 
)

◆ OutputElements() [1/2]

template<typename ... Args>
bool anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::OutputElements ( WriteBuffer ,
Args...   
)
inlineprotected

◆ OutputElements() [2/2]

template<>
bool anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::OutputElements ( WriteBuffer writeBuffer,
xmlNodePtr &&  node 
)
protected

◆ OutputNames()

void anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::OutputNames ( WriteBuffer writeBuffer,
const std::unordered_map< std::string, int > &  names 
) const
protected

Member Data Documentation

◆ m_AttributeIDs

std::unordered_map<std::string, int> anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::m_AttributeIDs
protected

◆ m_AttributeSize

int anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::m_AttributeSize = 0
protected

◆ m_ElementIDs

std::unordered_map<std::string, int> anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::m_ElementIDs
protected

◆ m_ElementSize

int anonymous_namespace{XMBStorage.cpp}::XMBStorageWriter::m_ElementSize = 0
protected

The documentation for this class was generated from the following file: