NDDEM
Public Member Functions | Public Attributes | List of all members
cereal::XMLOutputArchive::NodeInfo Struct Reference

A struct that contains metadata about a node. More...

#include <xml.hpp>

Public Member Functions

 NodeInfo (rapidxml::xml_node<> *n=nullptr, const char *nm=nullptr)
 
std::string getValueName ()
 Gets the name for the next child node created from this node. More...
 

Public Attributes

rapidxml::xml_nodenode
 A pointer to this node. More...
 
size_t counter
 The counter for naming child nodes. More...
 
const char * name
 The name for the next child node. More...
 

Detailed Description

A struct that contains metadata about a node.

Constructor & Destructor Documentation

◆ NodeInfo()

cereal::XMLOutputArchive::NodeInfo::NodeInfo ( rapidxml::xml_node<> *  n = nullptr,
const char *  nm = nullptr 
)
inline

Member Function Documentation

◆ getValueName()

std::string cereal::XMLOutputArchive::NodeInfo::getValueName ( )
inline

Gets the name for the next child node created from this node.

The name will be automatically generated using the counter if a name has not been previously set. If a name has been previously set, that name will be returned only once

Member Data Documentation

◆ counter

size_t cereal::XMLOutputArchive::NodeInfo::counter

The counter for naming child nodes.

◆ name

const char* cereal::XMLOutputArchive::NodeInfo::name

The name for the next child node.

◆ node

rapidxml::xml_node* cereal::XMLOutputArchive::NodeInfo::node

A pointer to this node.


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