mirror of https://github.com/Icinga/icinga2.git
parent
42a7ca4e78
commit
8c75e16b2a
|
@ -640,18 +640,13 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
|
|||
|
||||
void ClassCompiler::CodeGenValidator(const std::string& name, const std::string& klass, const std::vector<Rule>& rules, const std::string& field, const FieldType& fieldType, ValidatorType validatorType)
|
||||
{
|
||||
m_Header << "void TIValidate" << name << "(const intrusive_ptr<ObjectImpl<" << klass << "> >& object, ";
|
||||
m_Impl << "void TIValidate" << name << "(const intrusive_ptr<ObjectImpl<" << klass << "> >& object, ";
|
||||
m_Impl << "static void TIValidate" << name << "(const intrusive_ptr<ObjectImpl<" << klass << "> >& object, ";
|
||||
|
||||
if (validatorType != ValidatorField) {
|
||||
m_Header << "const String& key, ";
|
||||
if (validatorType != ValidatorField)
|
||||
m_Impl << "const String& key, ";
|
||||
}
|
||||
|
||||
bool static_known_attribute = false;
|
||||
|
||||
m_Header << fieldType.GetArgumentType() << " value, std::vector<String>& location, const ValidationUtils& utils);" << std::endl;
|
||||
|
||||
m_Impl << fieldType.GetArgumentType() << " value, std::vector<String>& location, const ValidationUtils& utils)" << std::endl
|
||||
<< "{" << std::endl;
|
||||
|
||||
|
|
Loading…
Reference in New Issue