ICG 2
Electric Boogaloo
STLDeclInfo.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <map>
4 #include <vector>
5 
6 #include "utils.hpp"
8 
14  public:
15  STLDeclInfo ();
16  STLDeclInfo (std::string n);
17 
18  // Rule of 5 is default
19  std::string name;
20 
23  std::string toString() const override;
24 };
An interface for an object that has some attributes that should be used in a list_ token,...
Definition: ICGTemplateEngine.hpp:35
Hold information about a field declaration.
Definition: STLDeclInfo.hpp:13
STLDeclInfo()
Definition: STLDeclInfo.cpp:8
ICGTemplateEngine::ListTokenItems nextLevel() const override
Get the value of any recursable objects nested in this one. May return empty if this is a "leaf".
Definition: STLDeclInfo.cpp:20
std::string toString() const override
Get a string representation.
Definition: STLDeclInfo.cpp:24
std::string name
Definition: STLDeclInfo.hpp:19
ICGTemplateEngine::Dictionary toDictionary() const override
Get a map of token name -> token value for this object.
Definition: STLDeclInfo.cpp:11
std::map< std::string, std::vector< const recursable * > > ListTokenItems
Lists that we can recurse into.
Definition: ICGTemplateEngine.hpp:23
std::map< std::string, std::string > Dictionary
Map of token name to string it should be replaced with.
Definition: ICGTemplateEngine.hpp:21