MCPcopy Create free account
hub / github.com/Autodesk/AutomaticComponentToolkit / buildCPPStub

Function buildCPPStub

Source/buildimplementationcpp.go:1116–1127  ·  view source on GitHub ↗
(component ComponentDefinition, NameSpace string, NameSpaceImplementation string, ClassIdentifier string, BaseName string, outputFolder string, indentString string, stubIdentifier string, forceRecreation bool)

Source from the content-addressed store, hash-verified

1114}
1115
1116func buildCPPStub(component ComponentDefinition, NameSpace string, NameSpaceImplementation string, ClassIdentifier string, BaseName string, outputFolder string, indentString string, stubIdentifier string, forceRecreation bool) error {
1117
1118 for i := 0; i < len(component.Classes); i++ {
1119 class := component.Classes[i]
1120 err := buildCPPStubClass(component, class, NameSpace, NameSpaceImplementation, ClassIdentifier, BaseName, outputFolder, indentString, stubIdentifier, forceRecreation)
1121 if err != nil {
1122 return err
1123 }
1124 }
1125
1126 return nil
1127}
1128
1129func getCppVariableName (param ComponentDefinitionParam) (string) {
1130 switch (param.ParamType) {

Callers 1

BuildImplementationCPPFunction · 0.85

Calls 1

buildCPPStubClassFunction · 0.85

Tested by

no test coverage detected