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

Function CreateCPPAbiHeader

Source/languagecpp.go:71–81  ·  view source on GitHub ↗

CreateCPPAbiHeader creates a CPP header file for the component's API

(component ComponentDefinition, CHeaderName string)

Source from the content-addressed store, hash-verified

69
70// CreateCPPAbiHeader creates a CPP header file for the component's API
71func CreateCPPAbiHeader(component ComponentDefinition, CHeaderName string) (error) {
72 hfile, err := CreateLanguageFile(CHeaderName, " ");
73 if (err != nil) {
74 return err;
75 }
76 hfile.WriteCLicenseHeader (component,
77 fmt.Sprintf ("This is an autogenerated C++-Header file in order to allow an easy\n use of %s", component.LibraryName),
78 true);
79 err = buildCAbiHeader(component, hfile, component.NameSpace, component.BaseName, true);
80 return err;
81}
82
83func getCPPParameterTypeName(ParamTypeName string, NameSpace string, ParamClass string)(string, error) {
84 paramNameSpace, paramClassName, err := decomposeParamClassName(ParamClass)

Callers 1

createComponentFunction · 0.85

Calls 3

CreateLanguageFileFunction · 0.85
buildCAbiHeaderFunction · 0.85
WriteCLicenseHeaderMethod · 0.80

Tested by

no test coverage detected