"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/config/configitem.cpp" between
icinga2-2.11.5.tar.gz and icinga2-2.12.0.tar.gz

About: Icinga 2 is an enterprise grade monitoring system which keeps watch over networks and any conceivable network resource.

configitem.cpp  (icinga2-2.11.5):configitem.cpp  (icinga2-2.12.0)
skipping to change at line 50 skipping to change at line 50
* Constructor for the ConfigItem class. * Constructor for the ConfigItem class.
* *
* @param type The object type. * @param type The object type.
* @param name The name of the item. * @param name The name of the item.
* @param unit The unit of the item. * @param unit The unit of the item.
* @param abstract Whether the item is a template. * @param abstract Whether the item is a template.
* @param exprl Expression list for the item. * @param exprl Expression list for the item.
* @param debuginfo Debug information. * @param debuginfo Debug information.
*/ */
ConfigItem::ConfigItem(Type::Ptr type, String name, ConfigItem::ConfigItem(Type::Ptr type, String name,
bool abstract, std::shared_ptr<Expression> exprl, bool abstract, Expression::Ptr exprl,
std::shared_ptr<Expression> filter, bool defaultTmpl, bool ignoreOnError, Expression::Ptr filter, bool defaultTmpl, bool ignoreOnError,
DebugInfo debuginfo, Dictionary::Ptr scope, DebugInfo debuginfo, Dictionary::Ptr scope,
String zone, String package) String zone, String package)
: m_Type(std::move(type)), m_Name(std::move(name)), m_Abstract(abstract), : m_Type(std::move(type)), m_Name(std::move(name)), m_Abstract(abstract),
m_Expression(std::move(exprl)), m_Filter(std::move(filter)), m_Expression(std::move(exprl)), m_Filter(std::move(filter)),
m_DefaultTmpl(defaultTmpl), m_IgnoreOnError(ignoreOnError), m_DefaultTmpl(defaultTmpl), m_IgnoreOnError(ignoreOnError),
m_DebugInfo(std::move(debuginfo)), m_Scope(std::move(scope)), m_Zone(std: :move(zone)), m_DebugInfo(std::move(debuginfo)), m_Scope(std::move(scope)), m_Zone(std: :move(zone)),
m_Package(std::move(package)) m_Package(std::move(package))
{ {
} }
skipping to change at line 127 skipping to change at line 127
ConfigObject::Ptr ConfigItem::GetObject() const ConfigObject::Ptr ConfigItem::GetObject() const
{ {
return m_Object; return m_Object;
} }
/** /**
* Retrieves the expression list for the configuration item. * Retrieves the expression list for the configuration item.
* *
* @returns The expression list. * @returns The expression list.
*/ */
std::shared_ptr<Expression> ConfigItem::GetExpression() const Expression::Ptr ConfigItem::GetExpression() const
{ {
return m_Expression; return m_Expression;
} }
/** /**
* Retrieves the object filter for the configuration item. * Retrieves the object filter for the configuration item.
* *
* @returns The filter expression. * @returns The filter expression.
*/ */
std::shared_ptr<Expression> ConfigItem::GetFilter() const Expression::Ptr ConfigItem::GetFilter() const
{ {
return m_Filter; return m_Filter;
} }
class DefaultValidationUtils final : public ValidationUtils class DefaultValidationUtils final : public ValidationUtils
{ {
public: public:
bool ValidateName(const String& type, const String& name) const override bool ValidateName(const String& type, const String& name) const override
{ {
ConfigItem::Ptr item = ConfigItem::GetByTypeAndName(Type::GetByNa me(type), name); ConfigItem::Ptr item = ConfigItem::GetByTypeAndName(Type::GetByNa me(type), name);
 End of changes. 3 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)