Writer Class Reference

#include <RobotAPI/libraries/aron/codegeneration/codegenerator/codewriter/cpp/Writer.h>

+ Inheritance diagram for Writer:

Public Member Functions

virtual void generateTypeIntEnums (const std::vector< typereader::GenerateIntEnumInfo > &) override
 
virtual void generateTypeObjects (const std::vector< typereader::GenerateObjectInfo > &) override
 
 Writer ()=delete
 
 Writer (const std::string &, const std::vector< std::string > &)
 
virtual ~Writer ()=default
 
- Public Member Functions inherited from CodeWriter
 CodeWriter ()=delete
 
 CodeWriter (const std::string &producerName, const std::vector< std::string > &additionalIncludesFromXMLFile)
 
std::vector< MetaClassPtrgetTypeClasses () const
 
std::vector< MetaEnumPtrgetTypeEnums () const
 
virtual ~CodeWriter ()=default
 

Protected Member Functions

virtual void addSpecificReaderMethods () override
 
virtual void addSpecificWriterMethods () override
 
CppClassPtr setupBasicCppClass (const typereader::GenerateInfo &info, const Generator &gen) const
 
CppEnumPtr setupEnumPtr (const typereader::GenerateInfo &info, const generator::IntEnumClass &gen) const
 
void setupMemberFields (CppClassPtr &, const std::map< std::string, std::string > &doc_members, const generator::IntEnumClass &) const
 
void setupMemberFields (CppClassPtr &, const std::map< std::string, std::string > &doc_members, const generator::ObjectClass &) const
 

Additional Inherited Members

- Protected Attributes inherited from CodeWriter
std::vector< std::string > additionalIncludes
 
std::vector< codegenerator::ReaderInfodictDataReaders
 
std::vector< codegenerator::WriterInfodictDataWriters
 
std::vector< codegenerator::WriterInfoinitialDictTypeWriters
 
std::vector< codegenerator::WriterInfoinitialIntEnumTypeWriters
 
std::vector< codegenerator::ReaderInfointEnumDataReaders
 
std::vector< codegenerator::WriterInfointEnumDataWriters
 
std::string producerName
 
std::vector< codegenerator::StaticReaderInfostaticDictDataReaders
 
std::vector< codegenerator::StaticReaderInfostaticIntEnumDataReaders
 
std::vector< MetaClassPtrtypeClasses
 
std::vector< MetaEnumPtrtypeEnums
 

Detailed Description

Definition at line 45 of file Writer.h.

Constructor & Destructor Documentation

◆ Writer() [1/2]

Writer ( )
delete

◆ Writer() [2/2]

Writer ( const std::string &  producerName,
const std::vector< std::string > &  additionalIncludesFromXMLFile 
)

Definition at line 74 of file Writer.cpp.

+ Here is the call graph for this function:

◆ ~Writer()

virtual ~Writer ( )
virtualdefault

Member Function Documentation

◆ addSpecificReaderMethods()

void addSpecificReaderMethods ( )
overrideprotectedvirtual

Implements CodeWriter.

Definition at line 184 of file Writer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSpecificWriterMethods()

void addSpecificWriterMethods ( )
overrideprotectedvirtual

Implements CodeWriter.

Definition at line 81 of file Writer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ generateTypeIntEnums()

void generateTypeIntEnums ( const std::vector< typereader::GenerateIntEnumInfo > &  generateIntEnums)
overridevirtual

Implements CodeWriter.

Definition at line 375 of file Writer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ generateTypeObjects()

void generateTypeObjects ( const std::vector< typereader::GenerateObjectInfo > &  generateObjects)
overridevirtual

Implements CodeWriter.

Definition at line 263 of file Writer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setupBasicCppClass()

CppClassPtr setupBasicCppClass ( const typereader::GenerateInfo info,
const Generator gen 
) const
protected

Definition at line 516 of file Writer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setupEnumPtr()

CppEnumPtr setupEnumPtr ( const typereader::GenerateInfo info,
const generator::IntEnumClass gen 
) const
protected

Definition at line 487 of file Writer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setupMemberFields() [1/2]

void setupMemberFields ( CppClassPtr c,
const std::map< std::string, std::string > &  doc_members,
const generator::IntEnumClass o 
) const
protected

Definition at line 616 of file Writer.cpp.

+ Here is the call graph for this function:

◆ setupMemberFields() [2/2]

void setupMemberFields ( CppClassPtr c,
const std::map< std::string, std::string > &  doc_members,
const generator::ObjectClass o 
) const
protected

Definition at line 603 of file Writer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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