Changeset 3370 for code/trunk/src/core/TclBind.h
- Timestamp:
- Jul 30, 2009, 2:10:44 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/resource (added) merged: 3328,3336-3340,3342-3350,3352-3366
- Property svn:mergeinfo changed
-
code/trunk/src/core/TclBind.h
r3196 r3370 34 34 #include <cassert> 35 35 #include <string> 36 #include "util/Singleton.h" 36 37 37 38 namespace orxonox 38 39 { 39 class _CoreExport TclBind 40 class _CoreExport TclBind : public Singleton<TclBind> 40 41 { 42 friend class Singleton<TclBind>; 41 43 public: 42 44 TclBind(const std::string& datapath); 43 45 ~TclBind(); 44 45 static TclBind& getInstance() { assert(singletonRef_s); return *singletonRef_s; }46 46 47 47 static std::string tcl(const std::string& tclcode); … … 49 49 50 50 void setDataPath(const std::string& datapath); 51 std::string getTclLibPath() const { return this->tclLibPath_; } 52 void createTclInterpreter(); 53 void createNewTclInterpreter(); 51 const std::string& getTclDataPath() const { return this->tclDataPath_; } 52 static std::string getTclLibraryPath(); 53 54 void initializeTclInterpreter(); 55 static Tcl::interpreter* createTclInterpreter(); 54 56 Tcl::interpreter* getTclInterpreter() const { return this->interpreter_; } 55 57 … … 63 65 64 66 Tcl::interpreter* interpreter_; 65 std::string tcl LibPath_;66 bool bSetTcl LibPath_;67 std::string tclDataPath_; 68 bool bSetTclDataPath_; 67 69 68 static TclBind* singleton Ref_s;70 static TclBind* singletonPtr_s; 69 71 }; 70 72 }
Note: See TracChangeset
for help on using the changeset viewer.