Table of Contents

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

tabsCount int

Number of tabs for indentation.

arrayName string

Name of the array variable.

customType string

Custom type for array elements.

dictionary Dictionary<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

tabCount int

Number of tabs for indentation.

mapName string

Name of the map variable.

keyType string

Type of the map keys.

valueType string

Type of the map values.

nameCommentEnums Dictionary<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

tabCount int

Number of tabs for indentation.

mapName string

Name of the map variable.

nameCommentEnums Dictionary<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)

Parameters

tabsCount int

Number of tabs for indentation.

vectorName string

Name of the vector variable.

customType string

Custom type for vector elements.

dictionary Dictionary<string, string>

Dictionary of key-value pairs to initialize the vector.