JSON object.
More...
#include <Json.h>
|
std::ostream & | dumpOn (std::ostream &str, std::map< std::string, std::string >::const_iterator val_r) const |
|
|
std::map< std::string,
std::string > | _data |
|
|
(Note that these are not member functions.)
|
std::ostream & | operator<< (std::ostream &str, const Object &obj) |
|
JSON object.
Definition at line 321 of file Json.h.
zypp::json::Object::Object |
( |
| ) |
|
|
inline |
template<class Iterator >
zypp::json::Object::Object |
( |
Iterator |
begin, |
|
|
Iterator |
end |
|
) |
| |
|
inline |
Construct from map-iterator.
Definition at line 327 of file Json.h.
zypp::json::Object::Object |
( |
const std::initializer_list< std::pair< String, Value >> & |
contents_r | ) |
|
|
inline |
Construct from map-initializer list { {k1,v1}, {k2,v2},...
}
Definition at line 331 of file Json.h.
void zypp::json::Object::add |
( |
const String & |
key_r, |
|
|
const Value & |
val_r |
|
) |
| |
|
inline |
Add key/value pair.
Definition at line 336 of file Json.h.
void zypp::json::Object::add |
( |
const std::initializer_list< std::pair< String, Value >> & |
contents_r | ) |
|
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 340 of file Json.h.
std::string zypp::json::Object::asJSON |
( |
| ) |
const |
|
inline |
JSON representation.
Definition at line 344 of file Json.h.
std::string zypp::json::Object::asString |
( |
| ) |
const |
|
inline |
std::ostream& zypp::json::Object::dumpOn |
( |
std::ostream & |
str | ) |
const |
|
inline |
Stream output.
Definition at line 352 of file Json.h.
std::ostream& zypp::json::Object::dumpOn |
( |
std::ostream & |
str, |
|
|
std::map< std::string, std::string >::const_iterator |
val_r |
|
) |
| const |
|
inlineprivate |
std::ostream & operator<< |
( |
std::ostream & |
str, |
|
|
const Object & |
obj |
|
) |
| |
|
related |
Stream output
Definition at line 371 of file Json.h.
std::map<std::string,std::string> zypp::json::Object::_data |
|
private |
The documentation for this class was generated from the following file: