Table of Contents

Class Activator

Namespace
VectorDraw.Serialize
Assembly
VectorDraw.Serialize.dll

This class is used to create instances of the vdml read objects.

public class Activator : BaseObject, IDisposable, IBaseObject, IVDSerialise
Inheritance
Activator
Implements
Inherited Members

Constructors

Activator()

Initializes a new instance of the object.

Fields

EmptyTypes

Get a static empty Type array.

Properties

SupportPath

Get/Set the support path used from FindFile(string) method.

isevl

Internaly use only.

version

Returns the file version where the object is embeded.

Methods

AddAssemply(string, Assembly)

Adds a new Assembly which implements some Types to the Activator.

AddAssemplyInternal(string, Assembly, string, string)

Adds a new Assembly which implements some Types to the Activator.

AddAssemplyTypes(Assembly, string)

Add object types that implements VectorDraw.Serialize.IFromString and/or VectorDraw.Serialize.IVDSerialise and their full name starts with namespacePrefix

AddCommonTypes()

Add common ValueType objects like double Int32 byte short System.Drawing.Color System.Drawing.Rectangle etc.

AddType(string, string, string, string)

Adds a Type with the passed parameters.

AddType(Type)

Add a new Type to the Activator.

ContainsType(string)

Checks if a type with the specific name has been already added.

ConvertString(string)

Convertes a string with special characters into a regular string.

ConvertUnicodeString(string)

Replaces Unicode format strings to their single value in UTF-16 format using little endian byte order.

CreateInstance(string)

Creates an instance of an object from an existing given Type name.

CreateInstanceFromType(Type)

Creates an instance of an object from an existing given Type.

CustomAttribute(object, Type)

Return the first custom attribute of the specified type that is applied to the specified object, or null if there is not such an attribute.

DeSerialize(DeSerializer, string, object)

This Function is called foreach property name of the object when opening in vdml format.

DecodeGlobalID(string)

Reconstruction of the GUID from an IFC GUID string (base64)

Dispose()

Releases all resources used by this object.

DynamicLoadModule(string, string)

Internally used. Load an unmanage dll

EncodeGuid(Guid)

Conversion of a GUID to a string representing the GUID

FindDllFileName(string)

Search the specific dll file name on the disk and return the full path name.

FindFile(string)

Finds the specified filename using the SupportPath property and returns the path where the file is.

GeTypeFromString(string)

Gets the Type from the Activator's list with the given type name.

GetAssemply(string, out Assembly)

Gets the assemply of the specific type.

GetAssemplyPath()

The Full path of the folder where the VectorDraw components are installed.

GetAssemplyTypes()

Returns an array of string ellements contains the Full Type Name and Version number of the Assemply where the type is implemented.

GetCulture()

Modify the current culture NumberFormat with DecimalSeparator

GetExtension(string)

Returns the extension(including the period ".") of the specified path string.

GetInstallationPath()

Get the Installation path where our libraries are placed.

GetNumberFormat()

Returns a DecimalSeparator Numberformat

GetResourcesDirectory()

Returns the directory of the resources files : vdres.txt , Menu.txt, Commands.txt

GetTypeFullname(string)

Returns the full namespace of type if exist or null if not.

GetUnicodeString(string, ushort)

Returns a copy of input str with characters bigger than characterLimit replaced to Unicode format

IsExtensionOf(string, string)

Returns true if the passed path string ends with spesific extension

LoadAssembly(string)

Loads an assembly given its file name or path

OnAddAssemplyForType(string, Assembly, string, string, ref bool)

Called when a new Type with passed Full type name, is going to be added to resources dictionary

OnThrowException(Exception)

Called when an exception occured.

ReadObjectFromString(string, string)

Parses the svalue string to the stype name Type.

Serialize(Serializer)

This Function is called when saving the object to vdml format.

SetResourcesDirectory(string)

Set the directory of the resources files : vdres.txt , Menu.txt, Commands.txt

TypeContainsInterface(Type, string)

Checks if the passed type contains the given interface.

ValidateFilenamePath(string)

Make a full path name valid with slashes separators

getDynamicStaticMethod(string, string, string)

Returns the MethodInfo of passed StaticMethodName belong to an Assembly file define by the assemblyDllName and its is a Type of the passed MethodClassObjectType full type name

getTypes(out string[], out string[], out string[])

Returns all the Type names and their own Assemblies from the Activator's list.

getuservalue(RegistryKey, string, string, string)

Reads a string from the VectorDraw registry.

writeuservalue(RegistryKey, string, string, string)

Writes a string from the VectorDraw registry.