X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCalc%2Fgui%2FXmedDataModel.hxx;h=71c08431aa2e9e238d4f9dc69d03ca1caa4300f9;hb=f2a8b789a729f5650f03263657fdbf68f4f53944;hp=fa2f6c1c60976f2f3dad5ca6cdf0a8f9a7567068;hpb=7d5fb5a50f6d091af34805871047f2fe72bdf293;p=modules%2Fmed.git diff --git a/src/MEDCalc/gui/XmedDataModel.hxx b/src/MEDCalc/gui/XmedDataModel.hxx index fa2f6c1c6..71c08431a 100644 --- a/src/MEDCalc/gui/XmedDataModel.hxx +++ b/src/MEDCalc/gui/XmedDataModel.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D +// Copyright (C) 2007-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -35,17 +35,18 @@ class MEDCALCGUI_EXPORT XmedDataObject: public DataObject { public: XmedDataObject(); - virtual string getPath(); + virtual std::string getPath(); void setFieldHandler(MEDCALC::FieldHandler fieldHandler); MEDCALC::FieldHandler * getFieldHandler(); - static const int NB_TYPE_OF_FIELDS = 4; - static const char * mapTypeOfFieldLabel[NB_TYPE_OF_FIELDS]; + void setPresentationId(int presId); + int getPresentationId() const; private: MEDCALC::FieldHandler _fieldHandler; - string _getTypedFieldLabel(); + int _presId; + std::string _getTypedFieldLabel(); }; // @@ -71,7 +72,7 @@ public: // then get the result you are interested in, using the corresponding // "result*" function. // -// 2) Alternativly, you can just call directly the suitable master +// 2) Alternatively, you can just call directly the suitable master // "get*" function to process and get the result you are interested // in. //