mirror of https://github.com/Icinga/icinga2.git
parent
d4a6d68ef0
commit
9c74bfd5be
|
@ -159,6 +159,11 @@ String::ConstIterator String::End(void) const
|
|||
return m_Data.end();
|
||||
}
|
||||
|
||||
double String::ToDouble(void) const
|
||||
{
|
||||
return strtod(CStr(), NULL);
|
||||
}
|
||||
|
||||
ostream& icinga::operator<<(ostream& stream, const String& str)
|
||||
{
|
||||
stream << static_cast<std::string>(str);
|
||||
|
|
|
@ -87,6 +87,8 @@ public:
|
|||
Iterator End(void);
|
||||
ConstIterator End(void) const;
|
||||
|
||||
double ToDouble(void) const;
|
||||
|
||||
static const size_t NPos;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue