Program: bbtk
Module: $RCSfile: bbtkInterpreter.h,v $ $
Language: C++
- Date: $Date: 2008/04/22 09:40:11 $
- Version: $Revision: 1.28 $
+ Date: $Date: 2008/05/15 08:02:36 $
+ Version: $Revision: 1.31 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//=======================================================================
class BBTK_EXPORT Interpreter : public Object
{
- BBTK_OBJECT_INTERFACE(Interpreter);
+ BBTK_OBJECT_INTERFACE_NO_CONDES(Interpreter);
typedef Object Superclass;
public:
static Pointer New(const std::string& cpp_file = "");
+ static Pointer New(VirtualExec::Pointer);
typedef enum
{
cKind, // LG
cNewGUI, // LG
cWorkspace, // LG
- cObject
+ cDebug // LG
} CommandCodeType;
/// The structure storing the informations on a command
void NewGUI(const std::string& box,
const std::string& instanceName);
- void ObjectInfo(const std::string& name);
+ void Debug(const std::string& arg);
private:
/// Constructor
Interpreter(const std::string& cpp_file = "");
+ Interpreter(VirtualExec::Pointer);
+
+ void Init(VirtualExec::Pointer, const std::string& cpp_file);
+
/// Opens the file fullPathScriptName
/// includeScriptName is the name as given to the include command
void LoadScript( std::string fullPathScriptName,
bool mThrow;
+ protected:
+ ~Interpreter();
+
};
// EO class Interpreter