ICG 2
Electric Boogaloo
Public Member Functions | Public Attributes | List of all members
FieldInfo Class Referencefinal

Hold information about a field declaration. More...

#include <FieldInfo.hpp>

Inheritance diagram for FieldInfo:
ICGTemplateEngine::recursable

Public Member Functions

 FieldInfo ()
 
ICGTemplateEngine::Dictionary toDictionary () const override
 Get a map of token name -> token value for this object. More...
 
ICGTemplateEngine::ListTokenItems nextLevel () const override
 Get the value of any recursable objects nested in this one. May return empty if this is a "leaf". More...
 
std::string toString () const override
 Get a string representation. More...
 

Public Attributes

std::string type
 
std::string name
 

Detailed Description

Hold information about a field declaration.

Constructor & Destructor Documentation

◆ FieldInfo()

FieldInfo::FieldInfo ( )

Member Function Documentation

◆ nextLevel()

ICGTemplateEngine::ListTokenItems FieldInfo::nextLevel ( ) const
overridevirtual

Get the value of any recursable objects nested in this one. May return empty if this is a "leaf".

Returns
ListTokenItems std::map<std::string, std::vector<const recursable *>>

Implements ICGTemplateEngine::recursable.

◆ toDictionary()

ICGTemplateEngine::Dictionary FieldInfo::toDictionary ( ) const
overridevirtual

Get a map of token name -> token value for this object.

Returns
Dictionary std::map<std::string, std::string>

Implements ICGTemplateEngine::recursable.

◆ toString()

std::string FieldInfo::toString ( ) const
overridevirtual

Get a string representation.

Returns
std::string

Implements ICGTemplateEngine::recursable.

Member Data Documentation

◆ name

std::string FieldInfo::name

◆ type

std::string FieldInfo::type

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