mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
parent
1a13f2ad6e
commit
74822e929a
@ -241,6 +241,16 @@ ValueType Value::GetType(void) const
|
|||||||
return static_cast<ValueType>(m_Value.which());
|
return static_cast<ValueType>(m_Value.which());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Value icinga::operator+(const Value& lhs, const char *rhs)
|
||||||
|
{
|
||||||
|
return static_cast<String>(lhs) + rhs;
|
||||||
|
}
|
||||||
|
|
||||||
|
Value icinga::operator+(const char *lhs, const Value& rhs)
|
||||||
|
{
|
||||||
|
return lhs + static_cast<String>(rhs);
|
||||||
|
}
|
||||||
|
|
||||||
std::ostream& icinga::operator<<(std::ostream& stream, const Value& value)
|
std::ostream& icinga::operator<<(std::ostream& stream, const Value& value)
|
||||||
{
|
{
|
||||||
stream << static_cast<String>(value);
|
stream << static_cast<String>(value);
|
||||||
|
@ -114,6 +114,9 @@ private:
|
|||||||
|
|
||||||
static Value Empty;
|
static Value Empty;
|
||||||
|
|
||||||
|
I2_BASE_API Value operator+(const Value& lhs, const char *rhs);
|
||||||
|
I2_BASE_API Value operator+(const char *lhs, const Value& rhs);
|
||||||
|
|
||||||
I2_BASE_API std::ostream& operator<<(std::ostream& stream, const Value& value);
|
I2_BASE_API std::ostream& operator<<(std::ostream& stream, const Value& value);
|
||||||
I2_BASE_API std::istream& operator>>(std::istream& stream, Value& value);
|
I2_BASE_API std::istream& operator>>(std::istream& stream, Value& value);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user