mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
parent
2617521ce3
commit
97a2771a08
@ -121,27 +121,27 @@ void Table::FilteredAddRow(std::vector<Value>& rs, const Filter::Ptr& filter, co
|
|||||||
rs.push_back(row);
|
rs.push_back(row);
|
||||||
}
|
}
|
||||||
|
|
||||||
Value Table::ZeroAccessor(const Object::Ptr&)
|
Value Table::ZeroAccessor(const Value&)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Value Table::OneAccessor(const Object::Ptr&)
|
Value Table::OneAccessor(const Value&)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Value Table::EmptyStringAccessor(const Object::Ptr&)
|
Value Table::EmptyStringAccessor(const Value&)
|
||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
Value Table::EmptyArrayAccessor(const Object::Ptr&)
|
Value Table::EmptyArrayAccessor(const Value&)
|
||||||
{
|
{
|
||||||
return boost::make_shared<Array>();
|
return boost::make_shared<Array>();
|
||||||
}
|
}
|
||||||
|
|
||||||
Value Table::EmptyDictionaryAccessor(const Object::Ptr&)
|
Value Table::EmptyDictionaryAccessor(const Value&)
|
||||||
{
|
{
|
||||||
return boost::make_shared<Dictionary>();
|
return boost::make_shared<Dictionary>();
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ protected:
|
|||||||
|
|
||||||
virtual void FetchRows(const AddRowFunction& addRowFn) = 0;
|
virtual void FetchRows(const AddRowFunction& addRowFn) = 0;
|
||||||
|
|
||||||
static Value ZeroAccessor(const Object::Ptr&);
|
static Value ZeroAccessor(const Value&);
|
||||||
static Value OneAccessor(const Object::Ptr&);
|
static Value OneAccessor(const Value&);
|
||||||
static Value EmptyStringAccessor(const Object::Ptr&);
|
static Value EmptyStringAccessor(const Value&);
|
||||||
static Value EmptyArrayAccessor(const Object::Ptr&);
|
static Value EmptyArrayAccessor(const Value&);
|
||||||
static Value EmptyDictionaryAccessor(const Object::Ptr&);
|
static Value EmptyDictionaryAccessor(const Value&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::map<String, Column> m_Columns;
|
std::map<String, Column> m_Columns;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user