Exemplo n.º 1
0
        const int BYTES_FIELD    = 9;           // the bytes field


        public LogDataReader(System.Data.CommandBehavior behavior, LogConnection conn, LogCommand cmd)
        {
            _lconn           = conn;
            _lcmd            = cmd;
            _behavior        = behavior;
            _CompressStrings = new Hashtable(10000);                            // compress strings to save memory

            string fname = _lcmd.Url;

            _Domain = _lcmd.Domain;
            if (_Domain == null)
            {
                _Domain = "";
            }
            _IndexFile = _lcmd.IndexFile;
            if (_IndexFile == null)
            {
                _IndexFile = "";
            }

            if (behavior != CommandBehavior.SchemaOnly)
            {
                _sr = new MultipleStreamReader(_lcmd.Url);                      // get the main stream
            }
            _Data = new object[_Names.Length];                                  // allocate enough room for data
        }
Exemplo n.º 2
0
		const int BYTES_FIELD=9;	// the bytes field


		public LogDataReader(System.Data.CommandBehavior behavior, LogConnection conn, LogCommand cmd)
		{
			_lconn = conn;
			_lcmd = cmd;
			_behavior = behavior;
			_CompressStrings = new Hashtable(10000);		// compress strings to save memory
			
			string fname = _lcmd.Url;
			_Domain = _lcmd.Domain;
			if (_Domain == null)
				_Domain = "";
			_IndexFile = _lcmd.IndexFile;
			if (_IndexFile == null)
				_IndexFile = "";

			if (behavior != CommandBehavior.SchemaOnly)
				_sr = new MultipleStreamReader(_lcmd.Url);	// get the main stream

			_Data = new object[_Names.Length];			// allocate enough room for data
		}
Exemplo n.º 3
0
        string _Url; // url of the file

        #endregion Fields

        #region Constructors

        public LogCommand(LogConnection conn)
        {
            _lc = conn;
        }
Exemplo n.º 4
0
 public LogCommand(LogConnection conn)
 {
     _lc = conn;
 }