#include "SALOMEDS.hxx"
#include <string>
+#include <stdexcept>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
void SALOMEDS_AttributeTreeNode::SetTreeID(const std::string& value)
{
+ if(!Standard_GUID::CheckGUIDFormat((char*)value.c_str())) throw invalid_argument("Invalid GUID");
+
if (_isLocal) {
CheckLocked();
SALOMEDS::Locker lock;
#include "SALOMEDS.hxx"
#include <string>
+#include <stdexcept>
+
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
#include <Standard_GUID.hxx>
void SALOMEDS_AttributeUserID::SetValue(const std::string& value)
{
+ if(!Standard_GUID::CheckGUIDFormat((char*)value.c_str())) throw invalid_argument("Invalid GUID");
+
if (_isLocal) {
CheckLocked();
SALOMEDS::Locker lock;