本文整理汇总了Golang中github.com/axel-freesp/sge/interface/platform.ArchIf.Name方法的典型用法代码示例。如果您正苦于以下问题:Golang ArchIf.Name方法的具体用法?Golang ArchIf.Name怎么用?Golang ArchIf.Name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/axel-freesp/sge/interface/platform.ArchIf
的用法示例。
在下文中一共展示了ArchIf.Name方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: CreateXmlArch
func CreateXmlArch(a pf.ArchIf) *backend.XmlArch {
ret := backend.XmlArchNew(a.Name())
for _, t := range a.IOTypes() {
ret.IOType = append(ret.IOType, *CreateXmlIOType(t))
}
for _, p := range a.Processes() {
ret.Processes = append(ret.Processes, *CreateXmlProcess(p))
}
//ret.Entry = freesp.CreateXmlModePosition(a).Entry
return ret
}
示例2: CreateXmlArchHint
func CreateXmlArchHint(a pf.ArchIf) (xmla *backend.XmlArchPosHint) {
xmla = backend.XmlArchPosHintNew(a.Name())
xmla.Entry = freesp.CreateXmlModePosition(a).Entry
for _, p := range a.ArchPorts() {
xmla.ArchPorts = append(xmla.ArchPorts, *CreateXmlArchPortHint(p))
}
for _, p := range a.Processes() {
xmla.Processes = append(xmla.Processes, *CreateXmlProcessHint(p))
}
return
}
示例3: focusArchFromUserObject
func (v *mappingView) focusArchFromUserObject(obj pf.ArchIf) (ret graph.ArchIf, ok bool) {
var a graph.ArchIf
for _, a = range v.arch {
if obj.Name() == a.UserObj().Name() {
ret = a
ok = true
} else {
if a.Deselect() {
v.repaintArch(a)
}
}
}
return
}
示例4: channelGetIOTypeFromArch
func channelGetIOTypeFromArch(a pf.ArchIf, iotype string) (iot pf.IOTypeIf, err error) {
var ok bool
for _, iot = range a.IOTypes() {
if iot.Name() == iotype {
ok = true
break
}
}
if !ok {
err = fmt.Errorf("createInChannelFromXml error: referenced ioType %s not found in arch %s.\n",
iotype, a.Name())
}
return
}