Program: bbtk
Module: $RCSfile: bbtkTranscriptor.cxx,v $ $
Language: C++
- Date: $Date: 2008/02/14 11:38:58 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/02/14 13:48:13 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void Transcriptor::Create ( const std::string& nodeType,
const std::string& nodeName)
{
- // Current()->Add(nodeType,nodeName);
- m_Fp << "e->Add(" << nodeType << ", " << nodeName << ");" << std::endl;
+ // Current()->Add(nodeType,nodeName);\"
+ m_Fp << "e->Add("\" << nodeType << "\", \"" << nodeName << "\");" << std::endl;
}
const std::string &inputLabel)
{
//Current()->Connect(nodeFrom, outputLabel, nodeTo, inputLabel);
- m_Fp << "e->Connect("<< nodeFrom << ", " << outputLabel << ", "
- << nodeTo << ", " << inputLabel<< ");" << std::endl;
+ m_Fp << "e->Connect("<< nodeFrom << "\", \"" << outputLabel << "\", \""
+ << nodeTo << "\", \"" << inputLabel<< "\");" << std::endl;
}
/**
{
if (!mNoExecMode)
{
- Current()->GetPrototype()->bbGetBlackBox(nodeName)->bbExecute(true);
+ //Current()->GetPrototype()->bbGetBlackBox(nodeName)->bbExecute(true);
+ m_Fp << "e->GetPrototype()->bbGetBlackBox("\" << nodeName << "\", true );" << std::endl;
}
}
else
{
- Current()->AddToExecutionList(nodeName) ;
+ //Current()->AddToExecutionList(nodeName) ;
+ m_Fp << "e->AddToExecutionList("\" << nodeName << "\");" << std::endl;
}
}
m_Fp << "// ==> Some extra work to do when Current()==mRoot" << std::endl;
}
- m_Fp << "e->DefineInput("<< name << ", " << box << ", "
- << input << ", " << help << ");" << std::endl;
+ m_Fp << "e->DefineInput(\""<< name << "\", " << box << ", "
+ << input << ", \"" << help << "\");" << std::endl;
/*
const std::string& help)
{
// Current()->DefineOutput(name,box,output,help);
- m_Fp << "e->DefineOutput("<< name << ", " << box << ", "
- << output << ", " << help << ");" << std::endl;
+ m_Fp << "e->DefineOutput(\""<< name << "\", \"" << box << "\", \""
+ << output << "\", \"" << help << "\");" << std::endl;
}
/**
{
//Current()->AddToAuthor(authorName,Current()==mRoot);
if (Current()==mRoot)
- m_Fp << "e->AddToAuthor(" << authorName << ", true)" << std::endl;
+ m_Fp << "e->AddToAuthor(\"" << authorName << "\", true)" << std::endl;
else
- m_Fp << "e->AddToAuthor(" << authorName << ", false)" << std::endl;
+ m_Fp << "e->AddToAuthor(\"" << authorName << "\", false)" << std::endl;
}
void Transcriptor::Category(const std::string &category)
{
//Current()->AddToCategory(category,Current()==mRoot);
if (Current()==mRoot)
- m_Fp << "e->AddToCategory(" << category << ", true)" << std::endl;
+ m_Fp << "e->AddToCategory(\"" << category << "\", true)" << std::endl;
else
- m_Fp << "e->AddToCategory(" << category << ", false)" << std::endl;
+ m_Fp << "e->AddToCategory(\"" << category << "\", false)" << std::endl;
}
void Transcriptor::Description(const std::string &d)
{
// Current()->AddToDescription(d,Current()==mRoot);
if (Current()==mRoot)
- m_Fp << "e->AddToDescription(" << d << ", true)" << std::endl;
+ m_Fp << "e->AddToDescription(\"" << d << "\", true)" << std::endl;
else
- m_Fp << "e->AddToDescription(" << d << ", false)" << std::endl;
+ m_Fp << "e->AddToDescription(\"" << d << "\", false)" << std::endl;
}