//Includes same project
#include "GlobalConstants.h"
#include "GObjectModel.h"
-#include "GBlackBoxModel.h"
+#include "GBoxModel.h"
//Includes creaMaracasVisu
namespace bbtk
{
- class GBlackBoxModel;
+ class GBoxModel;
class GPortModel : public GObjectModel
{
virtual ~GPortModel();
//Public methods
- void registerInBox(GBlackBoxModel *blackBox,int portType, int pos);
+ void registerInBox(GBoxModel *blackBox,int portType, int pos);
void updatePortPosition();
int getPortType();
- GBlackBoxModel* getParentBox();
+ 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;