-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// =================================================================
//
-const string MyDataObject::PROPERTY_KEY_TYPE = "type";
-const string MyDataObject::PROPERTY_KEY_CIRCUIT ="circuit";
-const string MyDataObject::PROPERTY_KEY_REPFONC ="rf";
+const std::string MyDataObject::PROPERTY_KEY_TYPE = "type";
+const std::string MyDataObject::PROPERTY_KEY_CIRCUIT ="circuit";
+const std::string MyDataObject::PROPERTY_KEY_REPFONC ="rf";
MyDataObject::MyDataObject() : DataObject() {
this->setProperty(PROPERTY_KEY_TYPE, "Tuyauterie");
/*! This function specified the localization of the object in the
* hierarchical organization
*/
-string MyDataObject::getPath() {
+std::string MyDataObject::getPath() {
// We choose here a convention for organizing the path for this
// class of object.
/*
- string path = getProperty(PROPERTY_KEY_CIRCUIT) + pathsep
+ std::string path = getProperty(PROPERTY_KEY_CIRCUIT) + pathsep
+ getProperty(PROPERTY_KEY_REPFONC) + pathsep
+ getProperty(PROPERTY_KEY_TYPE);
*/
- string path = getProperty(PROPERTY_KEY_TYPE) + pathsep
+ std::string path = getProperty(PROPERTY_KEY_TYPE) + pathsep
+ getProperty(PROPERTY_KEY_CIRCUIT) + pathsep
+ getProperty(PROPERTY_KEY_REPFONC);