Open() public method

public Open ( long offset ) : void
offset long
return void
        public void Open()
        {
            if (!Exists())
            {
                throw new IOException("Table composite does not exist");
            }

            // Check the file Lock
            if (!IsReadOnly)
            {
                // Obtain the Lock (generate error if this is not possible)
                StoreSystem.Lock(StateStoreName);
            }

            // Open the state store
            stateStore = StoreSystem.OpenStore(StateStoreName);
            StateStore = new TableStateStore(stateStore);

            // Get the fixed 64 byte area.
            var  fixedArea = stateStore.GetArea(-1);
            long headP     = fixedArea.ReadInt8();

            StateStore.Open(headP);

            Setup();

            InitObjectStore();

            ReadVisibleTables();
            ReadDroppedTables();

            CleanUp();
        }
Ejemplo n.º 2
0
        public void Open()
        {
            if (!Exists())
                throw new IOException("Table composite does not exist");

            // Check the file Lock
            if (!IsReadOnly) {
                // Obtain the Lock (generate error if this is not possible)
                StoreSystem.Lock(StateStoreName);
            }

            // Open the state store
            stateStore = StoreSystem.OpenStore(StateStoreName);
            StateStore = new TableStateStore(stateStore);

            // Get the fixed 64 byte area.
            var fixedArea = stateStore.GetArea(-1);
            long headP = fixedArea.ReadInt8();
            StateStore.Open(headP);

            Setup();

            InitObjectStore();

            ReadVisibleTables();
            ReadDroppedTables();

            CleanUp();
        }