X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Events.cpp;h=08d2422b1b0c07ecebc0d9b86024464a14e6a221;hb=refs%2Fheads%2FV9_11_BR;hp=bfe2cdb2aa034db6f9b89327c98553fb8aa13eb5;hpb=a74fbd0025bc36fc76b5559d960857f419446ecb;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Events.cpp b/src/ModelAPI/ModelAPI_Events.cpp index bfe2cdb2a..08d2422b1 100644 --- a/src/ModelAPI/ModelAPI_Events.cpp +++ b/src/ModelAPI/ModelAPI_Events.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2021 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -470,3 +470,44 @@ const ListOfShape& ModelAPI_ShapesFailedMessage::shapes() const { return myShapes; } + +/// Creates an empty message +ModelAPI_CheckConstraintsMessage::ModelAPI_CheckConstraintsMessage( + const Events_ID theID, const void* theSender) + :Events_Message(theID, theSender) +{ +} + +ModelAPI_CheckConstraintsMessage::~ModelAPI_CheckConstraintsMessage() +{ +} + +const std::set& ModelAPI_CheckConstraintsMessage::constraints() const +{ + return myConstraints; +} + +void ModelAPI_CheckConstraintsMessage::setConstraints(const std::set& theConstraints) +{ + myConstraints = theConstraints; +} + + +// ===== ModelAPI_FeaturesLicenseValidMessage ===== +ModelAPI_FeaturesLicenseValidMessage::ModelAPI_FeaturesLicenseValidMessage( + const Events_ID theID, const void* theSender) + : Events_Message(theID, theSender) +{} + +ModelAPI_FeaturesLicenseValidMessage::~ModelAPI_FeaturesLicenseValidMessage() +{} + +void ModelAPI_FeaturesLicenseValidMessage::setFeatures(const std::set& theFeatures) +{ + myFeatures = theFeatures; +} + +const std::set& ModelAPI_FeaturesLicenseValidMessage::features() const +{ + return myFeatures; +}