object

package
v0.0.0-...-5a6d1e8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

OBJECTS section

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAcDbDictionaryWDFLT

func NewAcDbDictionaryWDFLT(owner handle.Handler) (*AcDbDictionaryWDFLT, *AcDbPlaceHolder)

NewAcDbDictionaryWDFLT creates a new AcDbDictionaryWDFLT & AcDbPlaceHolder.

Types

type AcDbDictionaryWDFLT

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

AcDbDictionaryWDFLT represents ACDBDICTIONARYWDFLT Object.

func (*AcDbDictionaryWDFLT) AddItem

func (d *AcDbDictionaryWDFLT) AddItem(key string, value handle.Handler) error

AddItem adds new a new item to AcDbDictionaryWDFLT.

func (*AcDbDictionaryWDFLT) Format

func (d *AcDbDictionaryWDFLT) Format(f format.Formatter)

Format writes data to formatter.

func (*AcDbDictionaryWDFLT) FormatString

func (d *AcDbDictionaryWDFLT) FormatString(f format.Formatter) string

FormatString outputs data using given formatter.

func (*AcDbDictionaryWDFLT) Handle

func (d *AcDbDictionaryWDFLT) Handle() int

Handle returns a handle value.

func (*AcDbDictionaryWDFLT) IsObject

func (d *AcDbDictionaryWDFLT) IsObject() bool

IsObject is for Object interface.

func (*AcDbDictionaryWDFLT) SetHandle

func (d *AcDbDictionaryWDFLT) SetHandle(v *int)

SetHandle sets a handle.

func (*AcDbDictionaryWDFLT) String

func (d *AcDbDictionaryWDFLT) String() string

String outputs data using default formatter.

type AcDbPlaceHolder

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

AcDbPlaceHolder represents ACDBPLACEHOLDER Object.

func NewAcDbPlaceHolder

func NewAcDbPlaceHolder() *AcDbPlaceHolder

NewAcDbPlaceHolder creates a new AcDbPlaceHolder.

func (*AcDbPlaceHolder) Format

func (p *AcDbPlaceHolder) Format(f format.Formatter)

Format writes data to formatter.

func (*AcDbPlaceHolder) FormatString

func (p *AcDbPlaceHolder) FormatString(f format.Formatter) string

FormatString outputs data using given formatter.

func (*AcDbPlaceHolder) Handle

func (p *AcDbPlaceHolder) Handle() int

Handle returns a handle value.

func (*AcDbPlaceHolder) IsObject

func (p *AcDbPlaceHolder) IsObject() bool

IsObject is for Object interface.

func (*AcDbPlaceHolder) SetHandle

func (p *AcDbPlaceHolder) SetHandle(v *int)

SetHandle sets a handle.

func (*AcDbPlaceHolder) String

func (p *AcDbPlaceHolder) String() string

String outputs data using default formatter.

type Dictionary

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

Dictionary represents DICTIONARY Object.

func NewDictionary

func NewDictionary() *Dictionary

NewDictionary creates a new Dictionary.

func (*Dictionary) AddItem

func (d *Dictionary) AddItem(key string, value handle.Handler) error

AddItem adds new a new item to Dictionary.

func (*Dictionary) Format

func (d *Dictionary) Format(f format.Formatter)

Format writes data to formatter.

func (*Dictionary) FormatString

func (d *Dictionary) FormatString(f format.Formatter) string

FormatString outputs data using given formatter.

func (*Dictionary) Handle

func (d *Dictionary) Handle() int

Handle returns a handle value.

func (*Dictionary) IsObject

func (d *Dictionary) IsObject() bool

IsObject is for Object interface.

func (*Dictionary) SetHandle

func (d *Dictionary) SetHandle(v *int)

SetHandle sets a handle.

func (*Dictionary) String

func (d *Dictionary) String() string

String outputs data using default formatter.

type Group

type Group struct {
	Name        string
	Description string
	// contains filtered or unexported fields
}

Group represents GROUP Object.

func NewGroup

func NewGroup(name, desc string, es ...entity.Entity) *Group

NewGroup creates a new Group.

func (*Group) AddEntity

func (g *Group) AddEntity(es ...entity.Entity)

AddEntity adds entities to Group.

func (*Group) Format

func (g *Group) Format(f format.Formatter)

Format writes data to formatter.

func (*Group) FormatString

func (g *Group) FormatString(f format.Formatter) string

FormatString outputs data using given formatter.

func (*Group) Handle

func (g *Group) Handle() int

Handle returns a handle value.

func (*Group) IsObject

func (g *Group) IsObject() bool

IsObject is for Object interface.

func (*Group) SetHandle

func (g *Group) SetHandle(v *int)

SetHandle sets a handle.

func (*Group) SetOwner

func (g *Group) SetOwner(d *Dictionary)

SetOwner sets an owner(Dictionary).

func (*Group) String

func (g *Group) String() string

String outputs data using default formatter.

type Object

type Object interface {
	IsObject() bool
	Format(f format.Formatter)
	Handle() int
	SetHandle(*int)
}

Object is interface for OBJECT.

type Objects

type Objects []Object

Objects represents OBJECTS section.

func New

func New() Objects

New create a new Objects.

func (Objects) Add

func (os Objects) Add(o Object) Objects

Add adds a new object to OBJECTS section.

func (Objects) Format

func (os Objects) Format(f format.Formatter)

Format writes OBJECTS data to formatter.

func (Objects) SetHandle

func (os Objects) SetHandle(v *int)

SetHandle sets handles to each object.

Jump to

Keyboard shortcuts

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