X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeString.h;h=d678d89f9743a9de6ac374f5d9ef4976036b8554;hb=f3091c70ae80771d3bf86f8b0efcd529934e0442;hp=deabf77880c6b1a271fb7d34746ddc775f13bf5e;hpb=7074394f8f08413d885f63be01df6bd5007b868c;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeString.h b/src/Model/Model_AttributeString.h index deabf7788..d678d89f9 100644 --- a/src/Model/Model_AttributeString.h +++ b/src/Model/Model_AttributeString.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-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 @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef MODEL_ATTRIBUTESTRING_H_ @@ -41,12 +40,16 @@ class Model_AttributeString : public ModelAPI_AttributeString public: /// Defines the std::string value MODEL_EXPORT virtual void setValue(const std::string& theValue); + /// Defines the std::wstring value + MODEL_EXPORT virtual void setValue(const std::wstring& theValue); /// Returns the std::string value MODEL_EXPORT virtual std::string value(); + /// Returns a pointer to Unicode string + MODEL_EXPORT virtual char16_t* valueU(); protected: - /// Initializes attibutes + /// Initializes attributes Model_AttributeString(TDF_Label& theLabel); /// Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc) virtual void reinit();