ReaderFactory Class Reference

The ReaderFactory class. More...

#include <RobotAPI/libraries/aron/codegeneration/typereader/xml/Factory.h>

Public Member Functions

type::VariantPtr create (const RapidXmlReaderNode &, const Path &)
 the creation methods to return the types. Basically does a switch-case over the xml tag names converted to a descriptor object. More...
 
 ReaderFactory ()=default
 

Public Attributes

std::map< std::string, typereader::GenerateIntEnumInfoallGeneratedPublicIntEnums
 same for int enums More...
 
std::map< std::string, typereader::GenerateObjectInfoallGeneratedPublicObjects
 static map of all generated objects. Since this factory may be called recursively, it must be static More...
 
std::vector< std::string > allPreviouslyKnownPublicTypes
 previously known types More...
 

Detailed Description

The ReaderFactory class.

It takes a xml-node and generates a type object representing the description in the xml node

Definition at line 44 of file Factory.h.

Constructor & Destructor Documentation

◆ ReaderFactory()

ReaderFactory ( )
default

Member Function Documentation

◆ create()

type::VariantPtr create ( const RapidXmlReaderNode node,
const Path path 
)

the creation methods to return the types. Basically does a switch-case over the xml tag names converted to a descriptor object.

Definition at line 60 of file Factory.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ allGeneratedPublicIntEnums

std::map<std::string, typereader::GenerateIntEnumInfo> allGeneratedPublicIntEnums

same for int enums

Definition at line 94 of file Factory.h.

◆ allGeneratedPublicObjects

std::map<std::string, typereader::GenerateObjectInfo> allGeneratedPublicObjects

static map of all generated objects. Since this factory may be called recursively, it must be static

Definition at line 91 of file Factory.h.

◆ allPreviouslyKnownPublicTypes

std::vector<std::string> allPreviouslyKnownPublicTypes

previously known types

Definition at line 97 of file Factory.h.


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