Exemplo n.º 1
0
        /// <summary>
        /// converts the Objecttype to PBORCA_ENTRY_TYPE
        /// </summary>
        /// <param name="type">Objecttype</param>
        /// <returns></returns>
        private PBORCA_ENTRY_TYPE GetEntryType(Objecttype type)
        {
            PBORCA_ENTRY_TYPE entryType = PBORCA_ENTRY_TYPE.PBORCA_BINARY;

            switch (type)
            {
            case Objecttype.Application:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_APPLICATION;
                break;

            case Objecttype.Binary:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_BINARY;
                break;

            case Objecttype.Datawindow:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_DATAWINDOW;
                break;

            case Objecttype.Function:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_FUNCTION;
                break;

            case Objecttype.Menu:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_MENU;
                break;

            case Objecttype.Pipeline:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_PIPELINE;
                break;

            case Objecttype.Project:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_PROJECT;
                break;

            case Objecttype.Proxyobject:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_PROXYOBJECT;
                break;

            case Objecttype.Query:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_QUERY;
                break;

            case Objecttype.Structure:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_STRUCTURE;
                break;

            case Objecttype.Userobject:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_USEROBJECT;
                break;

            case Objecttype.Window:
                entryType = PBORCA_ENTRY_TYPE.PBORCA_WINDOW;
                break;
            }

            return(entryType);
        }
Exemplo n.º 2
0
        /// <summary>
        /// converts the PBORCA_ENTRY_TYPE to Objecttype
        /// </summary>
        /// <param name="entryType"></param>
        /// <returns></returns>
        private Objecttype GetObjecttype(PBORCA_ENTRY_TYPE entryType)
        {
            Objecttype type = Objecttype.None;

            switch (entryType)
            {
            case PBORCA_ENTRY_TYPE.PBORCA_APPLICATION:
                type = Objecttype.Application;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_BINARY:
                type = Objecttype.Binary;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_DATAWINDOW:
                type = Objecttype.Datawindow;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_FUNCTION:
                type = Objecttype.Function;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_MENU:
                type = Objecttype.Menu;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_PIPELINE:
                type = Objecttype.Pipeline;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_PROJECT:
                type = Objecttype.Project;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_PROXYOBJECT:
                type = Objecttype.Proxyobject;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_QUERY:
                type = Objecttype.Query;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_STRUCTURE:
                type = Objecttype.Structure;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_USEROBJECT:
                type = Objecttype.Userobject;
                break;

            case PBORCA_ENTRY_TYPE.PBORCA_WINDOW:
                type = Objecttype.Window;
                break;
            }

            return(type);
        }
Exemplo n.º 3
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="name">name of the entry</param>
 /// <param name="type">enum type of the object</param>
 /// <param name="createTime">creation datetime</param>
 /// <param name="size">size of object</param>
 /// <param name="library">path to library</param>
 /// <param name="comment">comment of entry</param>
 public LibEntry(string name, Objecttype type, DateTime createTime, int size, string library, orca.Orca.Version pbVersion, string comment = "")
 {
     this.name       = name;
     this.type       = type;
     this.createTime = createTime;
     this.size       = size;
     this.comment    = comment;
     this.library    = library;
     this.pbVersion  = pbVersion;
 }