objdb: some work on the controller.
[fail.git] / src / services / objdb / objdb.fidl
blob728432f7bdc58d5ec0b87a0df8596ba7c7837d1b
1 /*
2     Fail game engine
3     Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
4  
5     This file is part of Fail.
7     Fail is free software; you can redistribute it and/or modify
8     it under the terms of the GNU General Public License version 3
9     as published by the Free Software Foundation.
11     Fail is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
16     You should have received a copy of the GNU General Public License
17     along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 namespace fail { namespace objdb
21         class Controller
22         {
23                 static Pointer< Controller > GetInstance();
24         };
26         class Database
27         {
28                 static Pointer< Database > OpenRead( string Filename );
29                 static Pointer< Database > OpenReadWrite( string Filename );
30                 static Pointer< Database > Create( string Filename );
31                 static Pointer< Database > OpenOrCreate( string Filename );
32         };