cgenerator

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: GPL-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 added in v0.10.0

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

BindingFiles returns names of binding files for the given entity file.

func (CGenerator) IsGeneratedFile

func (CGenerator) IsGeneratedFile(file string) bool

func (CGenerator) IsSourceFile added in v0.12.0

func (CGenerator) IsSourceFile(file string) bool

func (*CGenerator) ModelFile

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

ModelFile returns the model GO 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