Documentation
¶
Overview ¶
Package iarewp defines a library for interacting with IAR's EWP files.
Notes:
- The library does not contain routines for interacting with configurations or file groups. The structs maintain the data as raw, unmarshalled XML. The library provides no means of interacting with the data.
- The library has no affiliation with IAR.
Ian McIntyre
Index ¶
Constants ¶
View Source
const ( // ProjectDir is the project directory prefix for file paths ProjectDir string = "$PROJ_DIR$" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByFileName ¶
type ByFileName []File
ByFileName wraps a slice of files for sorting by file name
func (ByFileName) Less ¶
func (fs ByFileName) Less(i, j int) bool
Less is a method of the sort interface
type Ewp ¶
type Ewp struct {
XMLName xml.Name `xml:"project"`
// FileVersion is the EWP file version
FileVersion int `xml:"fileVersion"`
// Configuration is the configuration tags.
// They are unused, so we consume all the inner structure
Configuration []struct {
Unused string `xml:",innerxml"`
} `xml:"configuration"`
// Group is the file groups. Also unused, so we
// consume all the inner XML here.
Group []struct {
Unused string `xml:",innerxml"`
} `xml:"group"`
// Files is a list of files
Files []File `xml:"file"`
}
Ewp the top-level type of the EWP
func (*Ewp) InsertFile ¶
InsertFile will insert a file into an EWP while maintaining file order
type Excluded ¶
type Excluded struct {
Configurations []string `xml:"configuration"`
}
Excluded defines the configurations that omit the file
type File ¶
type File struct {
// Name is the file name
Name string `xml:"name"`
// Excluded is an optional struct that defines
// the configurations from which the file is
// excluded.
Exclusions *Excluded `xml:"excluded,omitempty"`
}
File defines the file
Click to show internal directories.
Click to hide internal directories.