/// <summary> /// constructor /// </summary> /// <param name="file">the file to read</param> public PBProjFile(string file, orca.Orca.Version version) { string source; StreamReader reader = null; this.version = version; this.dir = file.Substring(0, file.LastIndexOf("\\")); this.file = file.Substring(file.LastIndexOf("\\") + 1); reader = new StreamReader(new FileStream(file, FileMode.Open)); exists = true; source = reader.ReadToEnd(); reader.Close(); Parse(source); }
/// <summary> /// constructor /// </summary> /// <param name="order">order number in worpspace</param> /// <param name="file">target file path</param> /// <param name="defaultTarget">f*g if it is default target</param> /// <param name="defaultRemoteTarget">flag if it is default remote target</param> /// <param name="version">PB version</param> public Target(int order, string file, bool defaultTarget, bool defaultRemoteTarget, orca.Orca.Version version) : base(file, version) { this.order = order; this.defaultTarget = defaultTarget; this.defaultRemoteTarget = defaultRemoteTarget; }
/// <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; }
/// <summary> /// constructor /// </summary> /// <param name="file">path to workspace</param> /// <param name="version">PB Version</param> public Workspace(string file, orca.Orca.Version version) : base(file, version) { }