makestruct

package
v0.0.0-...-d39508f Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitField

type BitField struct {
	Name     string
	CapName  string
	Bits     int64
	IsBool   bool
	IsSigned bool
	Offset   int64
	Scale    int64
	Cast     string
}

BitField is defined bit field on struct

type EnumInfo

type EnumInfo struct {
	StructName string
	Name       string
	List       []string
}

EnumInfo is defined enumerate list

type GlobalInfo

type GlobalInfo struct {
	NameSpace     string
	Include       []string
	LocalInclude  []string
	HeaderNameB   string
	HeaderGlobalB bool
	HeaderNameJ   string
	HeaderGlobalJ bool
	HeaderNameL   string
	HeaderGlobalL bool
	UseLua        bool
	TopStruct     StructInfo
	BinVersion    int64
	Compare       bool
	Copy          bool
	SJson         string
}

GlobalInfo is overall defined information

func ParseToml

func ParseToml(tomlConfig *toml.Tree, hpp string, bser string, json string, luaF string) (GlobalInfo, error)

ParseToml setup serialize code information by toml

type Initial

type Initial struct {
	Name    string
	CapName string
	Value   string
}

Initial value is member initialize in constructor

type Member

type Member struct {
	Name      string
	CapName   string
	Type      string
	Container string
	Ref       string
	GetRef    string
	IsStatic  bool
	Size      int64
	HasChild  bool
	Child     *StructInfo
}

Member is struct member

type Reserve

type Reserve struct {
	Container string
	Name      string
	Size      int64
}

Reserve is array size

type StructInfo

type StructInfo struct {
	Name        string
	IsClass     bool
	BitField    []BitField
	ChildStruct []StructInfo
	Members     []Member
	ReserveList []Reserve
	EnumList    []EnumInfo
	InitialList []Initial
	Serializer  string
	SJson       string
	UseLua      bool
	OutputEnum  bool
}

StructInfo output struct information

Jump to

Keyboard shortcuts

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