// Initialize
CppProcessor cppProcessor = new CppProcessor();
var cppOpts = new CppLangOptions()
{
NewLine = NewLineType.CRLF,
PrintSectionName = true,
InlineCommentPadSize = 56,
VariableMemberTypePadSize = 60,
GeneratePackageSyntax = true,
AddPackageHeaderToCppFile = false
};
cppProcessor.Init(cppOpts);
// Make package content
var cppPackage = new CppPackage()
{
Name = "PackageName",
NameSpace = "MyNameSpace",
Pragmas = new List<string>() { "once" },
Forwards = ...,
TypeDefs = ...,
Defines = ...,
Constants = ...,
Fields = ...,
Functions = ...,
Enums = ...,
Structs = ... // Classes/Structs
};
// Generate FileName:FileContect dictionary
Dictionary<string, string> cppFiles = _cppProcessor.GenerateFiles(cppPackage);
// OR
Dictionary<string, string> cppFiles = _cppProcessor.GenerateFiles(_cppProcessor.ModelFromJson("JSON_STRING"));
-
Notifications
You must be signed in to change notification settings - Fork 1
License
CorrM/LangPrint
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published