/[ascend]/trunk/pygtk/compiler.h
ViewVC logotype

Contents of /trunk/pygtk/compiler.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 773 - (show annotations) (download) (as text)
Fri Jul 14 06:07:14 2006 UTC (14 years, 2 months ago) by johnpye
File MIME type: text/x-chdr
File size: 790 byte(s)
Adding files for the 'Compiler' class.
1 #ifndef ASCXX_COMPILER_H
2 #define ASCXX_COMPILER_H
3
4 /**
5 This class holds compiler configuration. At the moment there is only one
6 possible compiler, although one day there might be different compilers
7 for different model file types.
8
9 During instantiation of a model (Type::getSimulation) we will need to
10 access the Compiler object (which is a singleton for the moment, although
11 it should not have to be) and query its values.
12
13 The GUI must also access the Compiler object when it wants to set
14 configuration options.
15 */
16 class Compiler{
17 private:
18 Compiler();
19 ~Compiler();
20 public:
21 static Compiler *instance();
22
23 const bool getUseRelationSharing() const;
24 void setUseRelationSharing(const bool&);
25 };
26
27 /** Compiler access function for use with Python */
28 Compiler *getCompiler();
29
30 #endif

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22