C# Class CyPhyComponentExporter.CyPhyComponentExporterInterpreter

Inheritance: IMgaComponentEx, IGMEVersionInfo
Afficher le fichier Open project: metamorph-inc/meta-core Class Usage Examples

Méthodes publiques

Свойство Type Description
OutputDir string
previousExportPath string

Protected Properties

Свойство Type Description
cadResourceRegex System.Text.RegularExpressions.Regex
interactiveMode bool

Private Properties

Свойство Type Description
Convert ComponentStartMode
GMERegister void
GMEUnRegister void
GetAllComponents List
Main void
Safeify String
TraverseComponentAssemblyForComponentExport void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Enable() public méthode

public Enable ( bool newval ) : void
newval bool
Résultat void

ExportComponentPackage() public static méthode

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.
Résultat String

ExportToFile() public static méthode

public static ExportToFile ( ISIS.GME.Dsml.CyPhyML.Interfaces c, String s_outFolder ) : String
c ISIS.GME.Dsml.CyPhyML.Interfaces
s_outFolder String
Résultat String

Initialize() public méthode

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.
Résultat void

Invoke() public méthode

public Invoke ( MgaProject Project, MgaFCOs selectedobjs, int param ) : void
Project MgaProject
selectedobjs MgaFCOs
param int
Résultat void

InvokeEx() public méthode

public InvokeEx ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, int param ) : void
project MgaProject
currentobj MgaFCO
selectedobjs MgaFCOs
param int
Résultat void

ObjectsInvokeEx() public méthode

public ObjectsInvokeEx ( MgaProject Project, MgaObject currentobj, MgaObjects selectedobjs, int param ) : void
Project MgaProject
currentobj MgaObject
selectedobjs MgaObjects
param int
Résultat void

SerializeAvmComponent() public static méthode

public static SerializeAvmComponent ( avm avmComponent, String s_outFilePath ) : void
avmComponent avm
s_outFilePath String
Résultat void

TraverseTestBenchForComponentExport() public méthode

public TraverseTestBenchForComponentExport ( MgaFCO currentobj, string OutputDirectory, string ProjectDirectory ) : void
currentobj MgaFCO
OutputDirectory string
ProjectDirectory string
Résultat void

get_ComponentParameter() public méthode

public get_ComponentParameter ( string Name ) : object
Name string
Résultat object

set_ComponentParameter() public méthode

public set_ComponentParameter ( string Name, object pVal ) : void
Name string
pVal object
Résultat void

Property Details

OutputDir public_oe property

public string OutputDir
Résultat string

cadResourceRegex protected_oe static_oe property

protected static Regex,System.Text.RegularExpressions cadResourceRegex
Résultat System.Text.RegularExpressions.Regex

interactiveMode protected_oe property

protected bool interactiveMode
Résultat bool

previousExportPath public_oe static_oe property

public static string previousExportPath
Résultat string