Documentation
¶
Index ¶
- Constants
- func FullPath(directory, file string) string
- func Read()
- func ZipSource(source, target string) error
- type DirectoryList
- type DirectoryModel
- type Document
- type Extensions
- type ItemDataModel
- type ItemDrawing
- type Object
- type ObjectDeps
- type Properties
- type Property
- type StringHolder
- type UProperty
Constants ¶
View Source
const ( Directory = "Directory" FCStd = "FCStd" Assembly_A2P = "Assembly_A2P" Assembly_A3 = "Assembly_A3" Assembly_A4 = "Assembly_A4" Drawing = "Drawing" Part = "Part" Group = "Group" ConfTable = "ConfTable" FC_Document = "FC_Document" FC_Old = "FC_Old" Other = "Other" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DirectoryList ¶
type DirectoryModel ¶
type DirectoryModel struct {
PurgeList []string
Directory string
DirectoryList []DirectoryList
}
type Document ¶
type Document struct {
XMLName xml.Name `xml:"Document" json:"-"`
SchemaVersion int `xml:"SchemaVersion,attr"`
ProgramVersion string `xml:"ProgramVersion,attr"`
FileVersion int `xml:"FileVersion,attr"`
Properties struct {
XMLName xml.Name `xml:"Properties" json:"-"`
Count int `xml:"Count,attr"`
TransientCount int `xml:"TransientCount,attr"`
UProperty []UProperty `xml:"_Property"`
Property []Property `xml:"Property"`
}
Objects struct {
XMLName xml.Name `xml:"Objects" json:"-"`
Count int `xml:"Count,attr"`
Dependencies int `xml:"Dependencies,attr"`
ObjectDeps []ObjectDeps `xml:"ObjectDeps"`
Object []Object `xml:"Object"`
}
}
The overall document XML structure
type Extensions ¶
type ItemDataModel ¶
type ItemDataModel struct {
FileName string
// xml_document XmlNode
Thumbnail []byte
DocumentProperties []byte
}
func InitItemDataModel ¶
func InitItemDataModel(filename string) (ret ItemDataModel)
func (ItemDataModel) GetFileName ¶
func (idm ItemDataModel) GetFileName() string
func (*ItemDataModel) ReadFcFile ¶
func (idm *ItemDataModel) ReadFcFile()
func (ItemDataModel) Save ¶
func (idm ItemDataModel) Save()
type ItemDrawing ¶
type ItemDrawing struct {
}
type Object ¶
type Object struct {
XMLName xml.Name `xml:"Object" json:"-"`
Name string `xml:"name,attr" json:"name"`
Type *string `xml:"type,attr" json:"type,omitempty"`
Id *int `xml:"id,attr" json:"id,omitempty"`
Extension *bool `xml:"Extensions,attr" json:"extensions,omitempty"`
Extensions *Extensions `xml:"Extensions" json:"Extensions,omitempty"`
}
type ObjectDeps ¶
type Properties ¶
type Property ¶
type Property struct {
XMLName xml.Name `xml:"Property" json:"-"`
Name string `xml:"name,attr" json:"name"`
Type string `xml:"type,attr" json:"type"`
Status *int `xml:"status,attr" json:"status,omitempty"`
String *struct {
Value string `xml:"value,attr" json:"value,omitempty"`
} `xml:"String" json:"String,omitempty"`
Bool *struct {
Value string `xml:"value,attr" json:"value,omitempty"`
} `xml:"Bool" json:"Bool,omitempty"`
Uuid *struct {
Value string `xml:"value,attr" json:"value,omitempty"`
} `xml:"Uuid" json:"Uuid,omitempty"`
Map *struct {
Count int `xml:"count,attr" json:"value,omitempty"`
} `xml:"Map" json:"Map,omitempty"`
}
type StringHolder ¶
Click to show internal directories.
Click to hide internal directories.