cgenerator

package
v4.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CGenerator

type CGenerator struct {
	PlainC            bool
	LangVersion       int    // -1: unset, cpp: 11, 14, 17
	Optional          string // std::optional, std::unique_ptr, std::shared_ptr
	EmptyStringAsNull bool
	NaNAsNull         bool
}

func (*CGenerator) BindingFiles

func (gen *CGenerator) BindingFiles(forFile string, options generator.Options) []string

BindingFiles returns the names of the generated C or C++ language binding files for the given entity file.

func (CGenerator) IsGeneratedFile

func (CGenerator) IsGeneratedFile(file string) bool

func (CGenerator) IsSourceFile

func (CGenerator) IsSourceFile(file string) bool

func (*CGenerator) ModelFile

func (gen *CGenerator) ModelFile(forFile string, options generator.Options) string

ModelFile returns the generated model C header file for the given JSON info file path

func (*CGenerator) ParseSource

func (gen *CGenerator) ParseSource(sourceFile string) (*model.ModelInfo, error)

func (*CGenerator) WriteBindingFiles

func (gen *CGenerator) WriteBindingFiles(sourceFile string, options generator.Options, mergedModel *model.ModelInfo) error

func (*CGenerator) WriteModelBindingFile

func (gen *CGenerator) WriteModelBindingFile(options generator.Options, mergedModel *model.ModelInfo) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL