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

Function CreateCPPTypesHeader

Source/languagecpp.go:41–52  ·  view source on GitHub ↗

CreateCPPTypesHeader creates a CPP header file for the types in component's API

(component ComponentDefinition, CTypesHeaderName string)

Source from the content-addressed store, hash-verified

39
40// CreateCPPTypesHeader creates a CPP header file for the types in component's API
41func CreateCPPTypesHeader(component ComponentDefinition, CTypesHeaderName string) (error) {
42 hTypesFile, err := CreateLanguageFile(CTypesHeaderName, " ");
43 if (err != nil) {
44 return err;
45 }
46 hTypesFile.WriteCLicenseHeader (component,
47 fmt.Sprintf ("This is an autogenerated C++-Header file with basic types in\norder to allow an easy use of %s", component.LibraryName),
48 true);
49
50 err = buildCCPPTypesHeader(component, hTypesFile, component.NameSpace, true);
51 return err;
52}
53
54func getCPPMemberLine(member ComponentDefinitionMember, NameSpace string, arraysuffix string, structName string) (string, error) {
55 switch (member.Type) {

Callers 1

createComponentFunction · 0.85

Calls 3

CreateLanguageFileFunction · 0.85
buildCCPPTypesHeaderFunction · 0.85
WriteCLicenseHeaderMethod · 0.80

Tested by

no test coverage detected