Gyoto
GyotoRegister.h
1 #ifdef GYOTO_USE_XERCES
2 /*
3  Copyright 2011 Thibaut Paumard
4 
5  This file is part of Gyoto.
6 
7  Gyoto is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  Gyoto is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef __GyotoRegister_H_
22 #define __GyotoRegister_H_
23 
24 #include <string>
25 #include <GyotoSmartPointer.h>
26 
27 namespace Gyoto {
28  namespace Register {
29  class Entry;
30  void init( char const * pluglist = NULL );
31  void list();
32  }
33  void loadPlugin( char const * const plugname, int nofail = 0);
34 }
35 
37  friend void Register::list ();
38 protected:
39  std::string name_;
41  int type_;
42  Register::Entry* next_;
43 public:
44  Entry(std::string name,
46  Entry* next);
47  ~Entry();
48  Gyoto::SmartPointee::Subcontractor_t* getSubcontractor(std::string);
49 };
50 
51 #endif
52 #endif