mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
48bdd0ebf4
commit
b163e4a002
@ -96,7 +96,7 @@ bool StatusQueryHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& re
|
|||||||
prefix = type->GetName();
|
prefix = type->GetName();
|
||||||
} else {
|
} else {
|
||||||
int fid = type->GetFieldId(joinAttr);
|
int fid = type->GetFieldId(joinAttr);
|
||||||
joinedObj = static_cast<Object::Ptr>(obj)->NavigateField(fid);
|
joinedObj = obj->NavigateField(fid);
|
||||||
|
|
||||||
if (!joinedObj)
|
if (!joinedObj)
|
||||||
continue;
|
continue;
|
||||||
|
@ -541,7 +541,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
|
|||||||
<< "{ }" << std::endl << std::endl;
|
<< "{ }" << std::endl << std::endl;
|
||||||
|
|
||||||
/* SetField */
|
/* SetField */
|
||||||
m_Header << "protected:" << std::endl
|
m_Header << "public:" << std::endl
|
||||||
<< "\t" << "virtual void SetField(int id, const Value& value, bool suppress_events = false, const Value& cookie = Empty) override;" << std::endl;
|
<< "\t" << "virtual void SetField(int id, const Value& value, bool suppress_events = false, const Value& cookie = Empty) override;" << std::endl;
|
||||||
|
|
||||||
m_Impl << "void ObjectImpl<" << klass.Name << ">::SetField(int id, const Value& value, bool suppress_events, const Value& cookie)" << std::endl
|
m_Impl << "void ObjectImpl<" << klass.Name << ">::SetField(int id, const Value& value, bool suppress_events, const Value& cookie)" << std::endl
|
||||||
@ -585,7 +585,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
|
|||||||
m_Impl << "}" << std::endl << std::endl;
|
m_Impl << "}" << std::endl << std::endl;
|
||||||
|
|
||||||
/* GetField */
|
/* GetField */
|
||||||
m_Header << "protected:" << std::endl
|
m_Header << "public:" << std::endl
|
||||||
<< "\t" << "virtual Value GetField(int id) const override;" << std::endl;
|
<< "\t" << "virtual Value GetField(int id) const override;" << std::endl;
|
||||||
|
|
||||||
m_Impl << "Value ObjectImpl<" << klass.Name << ">::GetField(int id) const" << std::endl
|
m_Impl << "Value ObjectImpl<" << klass.Name << ">::GetField(int id) const" << std::endl
|
||||||
@ -618,7 +618,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
|
|||||||
m_Impl << "}" << std::endl << std::endl;
|
m_Impl << "}" << std::endl << std::endl;
|
||||||
|
|
||||||
/* ValidateField */
|
/* ValidateField */
|
||||||
m_Header << "protected:" << std::endl
|
m_Header << "public:" << std::endl
|
||||||
<< "\t" << "virtual void ValidateField(int id, const Value& value, const ValidationUtils& utils) override;" << std::endl;
|
<< "\t" << "virtual void ValidateField(int id, const Value& value, const ValidationUtils& utils) override;" << std::endl;
|
||||||
|
|
||||||
m_Impl << "void ObjectImpl<" << klass.Name << ">::ValidateField(int id, const Value& value, const ValidationUtils& utils)" << std::endl
|
m_Impl << "void ObjectImpl<" << klass.Name << ">::ValidateField(int id, const Value& value, const ValidationUtils& utils)" << std::endl
|
||||||
@ -662,7 +662,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
|
|||||||
m_Impl << "}" << std::endl << std::endl;
|
m_Impl << "}" << std::endl << std::endl;
|
||||||
|
|
||||||
/* NotifyField */
|
/* NotifyField */
|
||||||
m_Header << "protected:" << std::endl
|
m_Header << "public:" << std::endl
|
||||||
<< "\t" << "virtual void NotifyField(int id, const Value& cookie = Empty) override;" << std::endl;
|
<< "\t" << "virtual void NotifyField(int id, const Value& cookie = Empty) override;" << std::endl;
|
||||||
|
|
||||||
m_Impl << "void ObjectImpl<" << klass.Name << ">::NotifyField(int id, const Value& cookie)" << std::endl
|
m_Impl << "void ObjectImpl<" << klass.Name << ">::NotifyField(int id, const Value& cookie)" << std::endl
|
||||||
@ -696,7 +696,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
|
|||||||
m_Impl << "}" << std::endl << std::endl;
|
m_Impl << "}" << std::endl << std::endl;
|
||||||
|
|
||||||
/* NavigateField */
|
/* NavigateField */
|
||||||
m_Header << "protected:" << std::endl
|
m_Header << "public:" << std::endl
|
||||||
<< "\t" << "virtual Object::Ptr NavigateField(int id) const override;" << std::endl;
|
<< "\t" << "virtual Object::Ptr NavigateField(int id) const override;" << std::endl;
|
||||||
|
|
||||||
m_Impl << "Object::Ptr ObjectImpl<" << klass.Name << ">::NavigateField(int id) const" << std::endl
|
m_Impl << "Object::Ptr ObjectImpl<" << klass.Name << ">::NavigateField(int id) const" << std::endl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user