Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 28, 2009, 5:04:38 PM (15 years ago)
Author:
landauf
Message:
  • bugfix in TclBind: Tcl_Init was only called if the constructor of Tcl::interpreter was called with a library path. The initialization is now moved from cpptcl to TclBind.
  • added a new command: TclThreadManager source <file>. This creates a non-interactive tcl-interpreter which executes a file. This allows for example to run the telnet_server.tcl script without a thread compatible tcl library. Warning: experimental state. A script-exit terminates Orxonox.
  • Several small changes in TclThreadManager
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/core/TclThreadManager.h

    r3359 r3360  
    3939#include "OrxonoxClass.h"
    4040
     41class Tcl_Interp;
     42
    4143namespace orxonox
    4244{
     
    4547        friend class TclBind;
    4648        friend _CoreExport void tclThread(TclInterpreterBundle* bundle, std::string command);
     49        friend _CoreExport void sourceThread(std::string file);
     50        friend _CoreExport int Tcl_OrxonoxAppInit(Tcl_Interp* interp);
    4751
    4852        public:
     
    5761            static void              execute(unsigned int target_id, const std::string& command);
    5862            static std::string       query(unsigned int target_id, const std::string& command);
     63            static void              source(const std::string& file);
    5964
    60             void error(const std::string& error);
    61             void debug(const std::string& error);
     65            static void error(const std::string& error);
     66            static void debug(const std::string& error);
    6267
    6368            void update(const Clock& time);
     
    7883            std::string dumpList(const std::list<unsigned int>& list);
    7984
    80             std::string eval(TclInterpreterBundle* bundle, const std::string& command);
     85            static void initialize(TclInterpreterBundle* bundle);
     86            static std::string eval(TclInterpreterBundle* bundle, const std::string& command, const std::string& action);
    8187
    8288            static TclThreadManager* singletonPtr_s;                            ///< Singleton pointer
     
    9096
    9197    _CoreExport void tclThread(TclInterpreterBundle* bundle, std::string command);
     98    _CoreExport void sourceThread(std::string file);
     99    _CoreExport int Tcl_OrxonoxAppInit(Tcl_Interp* interp);
    92100}
    93101
Note: See TracChangeset for help on using the changeset viewer.