Class GeneratorCpp
- Namespace
- SunamoDevCode.CodeGenerator
- Assembly
- SunamoDevCode.dll
C++ code generator for maps, vectors, and arrays.
public class GeneratorCpp : GeneratorCodeAbstract
- Inheritance
-
GeneratorCpp
- Inherited Members
- Extension Methods
Methods
Array(int, string, string, Dictionary<string, string>)
Generates a C++ array with custom type.
public void Array(int tabsCount, string arrayName, string customType, Dictionary<string, string> dictionary)
Parameters
tabsCountintNumber of tabs for indentation.
arrayNamestringName of the array variable.
customTypestringCustom type for array elements.
dictionaryDictionary<string, string>Dictionary of key-value pairs to initialize the array.
MapNonStringNonString(int, string, string, string, Dictionary<string, string>)
Generates a C++ map with custom key and value types.
public void MapNonStringNonString(int tabCount, string mapName, string keyType, string valueType, Dictionary<string, string> nameCommentEnums)
Parameters
tabCountintNumber of tabs for indentation.
mapNamestringName of the map variable.
keyTypestringType of the map keys.
valueTypestringType of the map values.
nameCommentEnumsDictionary<string, string>Dictionary of key-value pairs to add to the map.
MapStringString(int, string, Dictionary<string, string>)
Generates a C++ map with string keys and string values.
public void MapStringString(int tabCount, string mapName, Dictionary<string, string> nameCommentEnums)
Parameters
tabCountintNumber of tabs for indentation.
mapNamestringName of the map variable.
nameCommentEnumsDictionary<string, string>Dictionary of key-value pairs to add to the map.
VectorCustom(int, string, string, Dictionary<string, string>)
Generates a C++ vector with custom type.
public void VectorCustom(int tabsCount, string vectorName, string customType, Dictionary<string, string> dictionary)