X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGPortModel.h;h=474ebb3e109fe60cec33348411f498c66566d6a0;hb=62f479996c001d53a10c45e3ad6a3651b8007668;hp=9f731cc6fb3f0df17a9f34cf230ccfe27af79e78;hpb=878ac6ad472bc459f4e364c16890e5026c401944;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h index 9f731cc..474ebb3 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.h @@ -46,7 +46,7 @@ Version: $Revision$ //Includes same project #include "GlobalConstants.h" #include "GObjectModel.h" -#include "GBlackBoxModel.h" +#include "GBoxModel.h" //Includes creaMaracasVisu @@ -57,7 +57,7 @@ Version: $Revision$ namespace bbtk { - class GBlackBoxModel; + class GBoxModel; class GPortModel : public GObjectModel { @@ -66,21 +66,33 @@ namespace bbtk //Constructors GPortModel(); - ~GPortModel(); + virtual ~GPortModel(); //Public methods - void registerInBox(GBlackBoxModel *blackBox,int portType, int pos); + void registerInBox(GBoxModel *blackBox,int portType, int pos); void updatePortPosition(); int getPortType(); + GBoxModel* getParentBox(); + virtual std::string getStatusText(); + bool isConnected(); + void setConnected(bool value); + bool isValueSet(); + void setValue(std::string value); + std::string getValue(); + virtual void save(std::string &content); + int getPosInBox(); private: //Attributes - GBlackBoxModel *_parentBox; + GBoxModel *_parentBox; int _portType; int _posInBox; + bool _isConnected; + std::string _value; + bool _isValueSet; //Private Methods