#include <GeomValidators_PartitionArguments.h>
+#include <Events_InfoMessage.h>
+
#include <ModelAPI_AttributeBoolean.h>
#include <ModelAPI_AttributeSelectionList.h>
//=================================================================================================
bool GeomValidators_PartitionArguments::isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
const std::list<std::string>& theArguments,
- std::string& theError) const
+ Events_InfoMessage& theError) const
{
if(theArguments.size() != 3) {
theError = "Wrong number of arguments (expected 3).";
isCombine = anAttrBool->value();
}
- if((anObjectsNb > 0 && aToolsNb > 0) || (isCombine && anObjectsNb != 0 && (anObjectsNb + aToolsNb > 1))) {
+ if((anObjectsNb > 0 && aToolsNb > 0) ||
+ (isCombine && anObjectsNb != 0 && (anObjectsNb + aToolsNb > 1))) {
return true;
}
}
//=================================================================================================
-bool GeomValidators_PartitionArguments::isNotObligatory(std::string theFeature, std::string theAttribute)
+bool GeomValidators_PartitionArguments::isNotObligatory(std::string theFeature,
+ std::string theAttribute)
{
if(theAttribute == "tool_objects") {
return true;