]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx
v1.1.0
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.cxx
index 4d69b64c579ed5b931e20b8ee3a05f42142de4df..704ca1efb7d0c8b44b7f65a00ddbfc5a4290093a 100644 (file)
@@ -28,12 +28,14 @@ Version:   $Revision$
 *  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
@@ -147,7 +149,7 @@ 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())
                        {
@@ -162,7 +164,7 @@ namespace bbtk
 
        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)
                        {
@@ -175,14 +177,16 @@ namespace bbtk
 
        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)
                        {
@@ -197,7 +201,7 @@ namespace bbtk
        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())
                        {
@@ -212,7 +216,7 @@ namespace bbtk
        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())
                        {
@@ -223,9 +227,7 @@ namespace bbtk
        }
 
        //=========================================================================
-
-
-}  // EO namespace bbtk
+}   // EO namespace bbtk
 
 // EOF