* knowledge of the CeCILL-B license and that you accept its terms.
* ------------------------------------------------------------------------ */
-/**
-* \file
-* \brief Class bbtk::GBlackBox
-*/
+/****
+* Design and Developpement of BBTK GEditor
+* Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
+* RaC - 2010
+****/
+
#include "GBlackBoxModel.h"
namespace bbtk
content+="\n";
//Ports with a value
- for(int i = 0; i<_inputs.size();i++)
+ for(int i = 0; i<(int)_inputs.size();i++)
{
if(_inputs[i]->isValueSet())
{
void GBlackBoxModel::setValueToInput(std::string name,std::string value)
{
- for(int i = 0; i<_inputs.size();i++)
+ for(int i = 0; i<(int)_inputs.size();i++)
{
if(_inputs[i]->getBBTKName()==name)
{
std::string GBlackBoxModel::getValueInputPort(int pos)
{
- return _inputs[pos]->getValue();
+ std::string text = _inputs[pos]->getValue();
+ addColons(text);
+ return text;
}
//=========================================================================
std::string GBlackBoxModel::getValueInput(std::string name)
{
- for(int i = 0; i<_inputs.size();i++)
+ for(int i = 0; i<(int)_inputs.size();i++)
{
if(_inputs[i]->getBBTKName()==name)
{
std::vector<int> GBlackBoxModel::getConnectedInputs()
{
std::vector<int> connected;
- for(int i = 0; i<_inputs.size();i++)
+ for(int i = 0; i<(int)_inputs.size();i++)
{
if(_inputs[i]->isConnected())
{
std::vector<int> GBlackBoxModel::getConnectedOutputs()
{
std::vector<int> connected;
- for(int i = 0; i<_outputs.size();i++)
+ for(int i = 0; i<(int)_outputs.size();i++)
{
if(_outputs[i]->isConnected())
{
}
//=========================================================================
-
-
-} // EO namespace bbtk
+} // EO namespace bbtk
// EOF