-// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
// File : SALOMEDSImpl_AttributePythonObject.cxx
// Author : Michael Ponikarov
// Module : SALOME
//
#include "SALOMEDSImpl_AttributePythonObject.hxx"
-using namespace std;
-
const std::string& SALOMEDSImpl_AttributePythonObject::GetID()
{
static std::string SALOMEDSImpl_AttributePythonObjectID ("128371A3-8F52-11d6-A8A3-0001021E8C7F");
myIsScript = false;
}
-void SALOMEDSImpl_AttributePythonObject::SetObject(const string& theSequence,
- const bool theScript)
+void SALOMEDSImpl_AttributePythonObject::SetObject(const std::string& theSequence,
+ const bool theScript)
{
CheckLocked();
Backup();
SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
-string SALOMEDSImpl_AttributePythonObject::GetObject() const
+std::string SALOMEDSImpl_AttributePythonObject::GetObject() const
{
return mySequence;
}
}
-string SALOMEDSImpl_AttributePythonObject::Save()
+std::string SALOMEDSImpl_AttributePythonObject::Save()
{
- string aString = GetObject();
- string aResult = IsScript()?"s":"n";
+ std::string aString = GetObject();
+ std::string aResult = IsScript()?"s":"n";
aResult += aString;
return aResult;
}
-
-void SALOMEDSImpl_AttributePythonObject::Load(const string& value)
+
+void SALOMEDSImpl_AttributePythonObject::Load(const std::string& value)
{
char* aString = (char*)value.c_str();
SetObject(aString + 1, aString[0]=='s');