All pastes #929557 Raw Edit

Meins

public text v1 · immutable
·published 2008-03-05 21:23 UTC
rendered paste body
using GLib;
using Xml;
using Gee;

namespace Capuchin {
    
    class Parser.RepositoryParser : Object {
        
        private string _xmldata;
        private string _application;
        private string _installpath;
        private Parser.Item[] _items;
        
        public string xmldata {
            get { return this._xmldata; }
            construct { this._xmldata = value; }
        }
        
        public string application {
            get { return this._application; }
            private set { this._application = value; }
        }
        
        public string installpath {
            get { return this._installpath; }
            private set { this._installpath = value; }
        }
        
        public Parser.Item[] items {
            get { return this._items; }
            private set { this._items = value; }
        }
        
        public RepositoryParser (construct string xmldata) { }
        
        public void parse () {
            Doc *xmldoc = Xml.Parser.read_memory (this.xmldata, (int)this.xmldata.len ());
            
            xmldoc->free ();
        }
    }
}