C# Класс CyPhyComponentImporter.CyPhyComponentImporterInterpreter

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

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

Свойство Тип Описание
Errors List
ExpectedSchemaVersion double
ImportedComponentsFolderName string

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

Свойство Тип Описание
interactiveMode bool

Private Properties

Свойство Тип Описание
CheckAndWarnOnSchemaVersion void
Convert ComponentStartMode
GMERegister void
GMEUnRegister void
GetImportFolder ISIS.GME.Dsml.CyPhyML.Interfaces.Components
Main void
WriteLine void
getCyPhyMLComponentDictionary_ByName CyPhy.Component>.Dictionary

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

Метод Описание
DeserializeAvmComponentXml ( TextReader reader ) : avm.Component
Enable ( bool newval ) : void
ImportFile ( MgaProject project, string projroot, string FileName ) : IMgaFCO
ImportFiles ( MgaProject project, string projRootPath, string FileNames, bool alwaysReplace = false ) : IMgaFCOs
Initialize ( MgaProject project ) : void

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

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
getCyPhyMLComponentDictionary_ByAVMID ( ISIS.GME.Dsml.CyPhyML.Interfaces cyPhyMLRootFolder ) : CyPhy.Component>.Dictionary
get_ComponentParameter ( string Name ) : object
set_ComponentParameter ( string Name, object pVal ) : void

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

Метод Описание
CheckAndWarnOnSchemaVersion ( avm ac_import ) : void
Convert ( int param ) : ComponentStartMode
GMERegister ( Type t ) : void
GMEUnRegister ( Type t ) : void
GetImportFolder ( ISIS.GME.Dsml.CyPhyML.Interfaces rf ) : ISIS.GME.Dsml.CyPhyML.Interfaces.Components
Main ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, ComponentStartMode startMode ) : void
WriteLine ( Func f, IMgaFCO a, IMgaFCO b ) : void
getCyPhyMLComponentDictionary_ByName ( ISIS.GME.Dsml.CyPhyML.Interfaces cyPhyMLRootFolder ) : CyPhy.Component>.Dictionary

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

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

public static DeserializeAvmComponentXml ( TextReader reader ) : avm.Component
reader System.IO.TextReader
Результат avm.Component

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

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

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

public ImportFile ( MgaProject project, string projroot, string FileName ) : IMgaFCO
project MgaProject
projroot string
FileName string
Результат IMgaFCO

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

public ImportFiles ( MgaProject project, string projRootPath, string FileNames, bool alwaysReplace = false ) : IMgaFCOs
project MgaProject
projRootPath string
FileNames string
alwaysReplace bool
Результат IMgaFCOs

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

This function is called for each interpreter invocation before Main. Don't perform MGA operations here unless you open a transaction.
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

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

public static getCyPhyMLComponentDictionary_ByAVMID ( ISIS.GME.Dsml.CyPhyML.Interfaces cyPhyMLRootFolder ) : CyPhy.Component>.Dictionary
cyPhyMLRootFolder ISIS.GME.Dsml.CyPhyML.Interfaces
Результат CyPhy.Component>.Dictionary

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

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

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

public List Errors
Результат List

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

The version of the ACM schema expected by the importer. If an input file has a different version, the importer will warn the user, but try to import the component anyway.
public static double ExpectedSchemaVersion
Результат double

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

The default name of the folder in which imported components are placed.
public static string ImportedComponentsFolderName
Результат string

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

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