Gsd2Aml.Lib Interface to provide logging information of the conversion process. Log method which puts a message with the specific log level into the log file. The level of the log message. The message of the log. Enum which contains all possible log levels. Sets the log level to info. Sets the log level to warning. Sets the log level to error. Sets the log level to trace. Sets the log level to debug. Sets the log level to fatal. Sets the log level to off. The converter class which contains the logic to convert a GSD formatted file to an AML file. Converts a GSDML input file and returns the resulting AML file as a string. The path to the input file. A flag which indicates if the GSD should be checked for correctness. The AML object serialized to a XML string. Converts a GSDML input file and creates the .amlx package. The path to the input file. The path to the output file. A flag which indicates if the file should be overwritten if it exists. A flag which indicates if the GSD should be checked for correctness. Deserializes the translation table and the input file. Then it checks the input file for validity. After that it starts the conversion process. The path to the input file. The path to the output file. A flag which indicates if the GSDML should be checked for correctness. Starts the real conversion process. It iterates over the GSDML properties and translates it to AML. Then it recursively starts a new Handle call with the translated property. The type of the current AML head object. The current AML head object. The current GSD head object as a XmlElement. The actual translation of the GSD object to an AML object. The type of the AML head object. The AML head object in which the translation object will be set. The translation rule which will be used to translate the GSD object to an AML object. The new AML head object. This function iterates over all sub properties of the replacement to translate these and set them into the replacementInstance. The replacement rule. The replacement instance in which the sub properties will be set. A flag which indicates whether the current instance is an array or not. Dictionary which contains information about the references. This function handles a new Rule call in the translation table. It takes the inner text of the rule node and translate it with the corresponding rule. The rule node which contains the information which rule should be applied. The instance in which the rule instance will be set/added. Translates the sub properties of a translation rule. The XmlNode replacement rule. Dictionary which contains information about the references of a rule. The property info which describes the translationInstance and the translation instance in which the sub property instances will be set. This function sets the attributes of a replacement node to the translation instance. This function assumes that all attributes are of type string. If not, then please contact the developers . The replacement node of the translation table which will be used to set those attributes to the instance. The instance in which the attributes will be set. Dictionary which contains information about the references of a rule. Compress an AML file and its resources to an .amlx package using the AML.Engine. Creates a zip archive from a directory and the relevant GSD resources. The path to the AML file which will be zipped. The directory you want to store the archive in including the name of the archive.amlx. An array of paths to the resources to be part of the .amlx package. A flag which indicates if the file should be overwritten if it exists. Creates a zip archive from a directory. The directory you want to be zipped. The directory you want to store the zip archive in. An array of paths to the resources to be part of the .amlx package. A flag which indicates if the file should be overwritten if it exists. Creates a new directory in the temporary folder of Windows. The name of the folder to be created. The path to the directory as a string. Moves a file from one directory to another. The source path. The destination path. Deletes a folder if it exists. The destination path. Creates a directory path. The directory path. Path to the created directory. Contains utility functions which provide helping functionalities for the conversion process. Gets the property information (PropertyInfo, Type, bool isArray) of a string. The string indicates a way through the properties. The different "stations" are separated by dots. The by dots separated string. The property info, the type of the found property and if the type is an array. Recursively searches a class to find a property by string. The type object, which represents the currently iterated class. The name of the property being searched for. The PropertyInfo object if the property was found or null if it does not exist. Checks if a given type is a simple/primitive type. The type which should be checked. A boolean which indicates if the given type is a simple type. This function gets the relevant information (replacement, references) from a translation rule. The translation rule that is parsed. The replacement node and a list which contains all references. Parses the references given in the translation table and saves them to a dictionary. The references in a list of XmlNodes. Optional parameter which is a GSD tag and will be used instead of the iterated one. A dictionary which contains for each reference identifier the correct value. Parse real references (TextRef, GraphicRef) and find the correct value. Path to the real GSD element. The reference contains the reference. The referenceIdName contains the name of the reference id. The realIdName contains the name of the real id. The realElementname contains the name of the real element tag. The realValueName contains the name of the real value attribute. Optional parameter which is a GSD tag and will be used instead of the iterated one. The value of the real reference. Iterates through the GSD document with the given path. The by dots seperated path through the GSD docment. Optional parameter. If it is set the iteration starts from there. The last XmlNode of the path. This method checks the GSD file against the the xsd-files and validates it. The path to the GSD file. This method loads an XML file to an XmlDocument and returns it. The file path as a string. The XmlDocument object which contains the deserialized form of the XML file. This method loads the translation table. There are two different cases for loading the table. The translation table is in the installation folder located and named like 'gsd2aml.xml'. If the translation table is not in the installation folder, it will be loaded from resources. Returns the translation table XmlDocument object. This function generates the correct output file name for the string conversion method. The path to the input file. The correctly generated output file name. This function creates the an instance out of a type and a flag whether an array needs to be created or not. The type object which describes the type of the instance. Flag which indicates whether an array is needed. An instance of the type which the propertyType parameter describes. If an array is needed, it creates a list.