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);
+ {
}
//=========================================================================
}
//=========================================================================
- 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()
{