C# Класс CyPhyComponentExporter.CyPhyComponentExporterInterpreter

Наследование: IMgaComponentEx, IGMEVersionInfo
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
OutputDir string
previousExportPath string

Защищенные свойства (Protected)

Свойство Тип Описание
cadResourceRegex System.Text.RegularExpressions.Regex
interactiveMode bool

Private Properties

Свойство Тип Описание
Convert ComponentStartMode
GMERegister void
GMEUnRegister void
GetAllComponents List
Main void
Safeify String
TraverseComponentAssemblyForComponentExport void

Открытые методы

Метод Описание
Enable ( bool newval ) : void
ExportComponentPackage ( ISIS.GME.Dsml.CyPhyML.Interfaces component, String outputFolder = null ) : String

Given a CyPhy Component, builds a .ZIP-format Component Package, which includes an ACM version, as well as all artifacts from the component's backend folder. Note that it will grab ALL artifacts from that folder, not just those called out as Resources by the Component. It will also exclude any *.acm file found in that folder, opting to create a new ACM file from the current state of the component.

ExportToFile ( ISIS.GME.Dsml.CyPhyML.Interfaces c, String s_outFolder ) : String
Initialize ( MgaProject project ) : void

This function is called for each interpreter invocation before Main. Don't perform MGA operations here unless you open a tansaction.

Invoke ( MgaProject Project, MgaFCOs selectedobjs, int param ) : void
InvokeEx ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, int param ) : void
ObjectsInvokeEx ( MgaProject Project, MgaObject currentobj, MgaObjects selectedobjs, int param ) : void
SerializeAvmComponent ( avm avmComponent, String s_outFilePath ) : void
TraverseTestBenchForComponentExport ( MgaFCO currentobj, string OutputDirectory, string ProjectDirectory ) : void
get_ComponentParameter ( string Name ) : object
set_ComponentParameter ( string Name, object pVal ) : void

Приватные методы

Метод Описание
Convert ( int param ) : ComponentStartMode
GMERegister ( Type t ) : void
GMEUnRegister ( Type t ) : void
GetAllComponents ( ISIS.GME.Dsml.CyPhyML.Interfaces componentsFolder ) : List
Main ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, ComponentStartMode startMode ) : void
Safeify ( String s_in ) : String
TraverseComponentAssemblyForComponentExport ( ComponentIndex compindex, ISIS.GME.Dsml.CyPhyML.Interfaces componentasm, string OutputDirectory, string ProjectDirectory ) : void

Описание методов

Enable() публичный Метод

public Enable ( bool newval ) : void
newval bool
Результат void

ExportComponentPackage() публичный статический Метод

Given a CyPhy Component, builds a .ZIP-format Component Package, which includes an ACM version, as well as all artifacts from the component's backend folder. Note that it will grab ALL artifacts from that folder, not just those called out as Resources by the Component. It will also exclude any *.acm file found in that folder, opting to create a new ACM file from the current state of the component.
public static ExportComponentPackage ( ISIS.GME.Dsml.CyPhyML.Interfaces component, String outputFolder = null ) : String
component ISIS.GME.Dsml.CyPhyML.Interfaces
outputFolder String The folder where the component package should be created. If null, a temporary folder will be used.
Результат String

ExportToFile() публичный статический Метод

public static ExportToFile ( ISIS.GME.Dsml.CyPhyML.Interfaces c, String s_outFolder ) : String
c ISIS.GME.Dsml.CyPhyML.Interfaces
s_outFolder String
Результат String

Initialize() публичный Метод

This function is called for each interpreter invocation before Main. Don't perform MGA operations here unless you open a tansaction.
public Initialize ( MgaProject project ) : void
project MgaProject The handle of the project opened in GME, for which the interpreter was called.
Результат void

Invoke() публичный Метод

public Invoke ( MgaProject Project, MgaFCOs selectedobjs, int param ) : void
Project MgaProject
selectedobjs MgaFCOs
param int
Результат void

InvokeEx() публичный Метод

public InvokeEx ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, int param ) : void
project MgaProject
currentobj MgaFCO
selectedobjs MgaFCOs
param int
Результат void

ObjectsInvokeEx() публичный Метод

public ObjectsInvokeEx ( MgaProject Project, MgaObject currentobj, MgaObjects selectedobjs, int param ) : void
Project MgaProject
currentobj MgaObject
selectedobjs MgaObjects
param int
Результат void

SerializeAvmComponent() публичный статический Метод

public static SerializeAvmComponent ( avm avmComponent, String s_outFilePath ) : void
avmComponent avm
s_outFilePath String
Результат void

TraverseTestBenchForComponentExport() публичный Метод

public TraverseTestBenchForComponentExport ( MgaFCO currentobj, string OutputDirectory, string ProjectDirectory ) : void
currentobj MgaFCO
OutputDirectory string
ProjectDirectory string
Результат void

get_ComponentParameter() публичный Метод

public get_ComponentParameter ( string Name ) : object
Name string
Результат object

set_ComponentParameter() публичный Метод

public set_ComponentParameter ( string Name, object pVal ) : void
Name string
pVal object
Результат void

Описание свойств

OutputDir публичное свойство

public string OutputDir
Результат string

cadResourceRegex защищенное статическое свойство

protected static Regex,System.Text.RegularExpressions cadResourceRegex
Результат System.Text.RegularExpressions.Regex

interactiveMode защищенное свойство

protected bool interactiveMode
Результат bool

previousExportPath публичное статическое свойство

public static string previousExportPath
Результат string