]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/GObjectsMVCFactory.cxx
Bug #1689
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / GObjectsMVCFactory.cxx
index 41b3fe06aa57e36d987bb3976983363e52234b41..881ef466ad67eae51cb83f384ab86c0fd79942d0 100644 (file)
@@ -44,14 +44,7 @@ namespace bbtk
 
        GObjectsMVCFactory* GObjectsMVCFactory:: instance = NULL;
        GObjectsMVCFactory::GObjectsMVCFactory()
-       {               
-               _interpreter =Interpreter::New();
-               _interpreter->SetCommandLine(true);
-               std::stringstream* buf = new std::stringstream;
-               *buf << "exec freeze_no_error" << std::endl;
-               *buf << "message max 0" << std::endl; 
-               *buf << "include *" << std::endl;
-               _interpreter->InterpretBuffer(buf);     
+       {
        }
 
        //=========================================================================
@@ -61,24 +54,7 @@ namespace bbtk
        }
        //=========================================================================
 
-       BlackBoxDescriptor::Pointer GObjectsMVCFactory::getBlackBoxDescriptor(std::string packageName, std::string boxName)
-       {       
-               Factory::Pointer factory;               
-               Package::Pointer k;
-               std::map< std::string, BlackBoxDescriptor::Pointer> mapDesc;
-               try{
-                       factory = _interpreter->GetExecuter()->GetFactory();
-                       k = factory->GetPackage(packageName);
-                       mapDesc = k->GetDescriptorMap();
-               }catch(Exception e){
-                       printf("SCP: Exception in BlackBoxDescriptor::Pointer GObjectsMVCFactory::getBlackBoxDescriptor for package %s\n", packageName.c_str());
-                       printf("SCP: ERROR package %s probably does not exist\n", packageName.c_str());
-               }
-
-
-               return mapDesc[boxName];
-       }
-
+               
        //=========================================================================
        GObjectsMVCFactory* GObjectsMVCFactory :: getInstance()
        {