cppgen

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: ISC Imports: 9 Imported by: 0

Documentation

Overview

Package cppgen is the C++ generator: the port of CppCG.java and cpp.vm. The DTO and DAO of a C++ project are headers <Class>.h in one folder, <folders target> of settings.xml; the names of fields and CRUD methods follow <dto field-names-mode> (FieldNamesMode).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldNamesMode

func FieldNamesMode(fnm int) cg.FieldNamesMode

FieldNamesMode is <dto field-names-mode> of C++ (CppCG.field_names_mode): 0 - as is (the column names), 1 - lowerCamelCase, 2 - snake_case. Not the one of Go: 0 is TitleCase there.

Types

type DAO

type DAO struct {
	// contains filtered or unexported fields
}

func NewDAO

func NewDAO(core *cg.Core, s *sdmxml.Settings, sdm *sdmxml.Sdm) (*DAO, error)

func (*DAO) Translate

func (g *DAO) Translate(dao sdmxml.DaoClass) (string, error)

type DTO

type DTO struct {
	// contains filtered or unexported fields
}

func NewDTO

func NewDTO(core *cg.Core, s *sdmxml.Settings, sdm *sdmxml.Sdm) (*DTO, error)

func (*DTO) Translate

func (g *DTO) Translate(className string) (string, error)

Jump to

Keyboard shortcuts

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