Atlas
0.7.0
Networking protocol for the Worldforge system.
|
9 #ifndef ATLAS_FUNKY_ENCODER_H
10 #define ATLAS_FUNKY_ENCODER_H
14 namespace Atlas {
namespace Funky {
86 template<
class B,
class T>
class EncMap;
95 template<
class B,
class T>
117 b.mapIntItem(
name, i);
124 b.mapFloatItem(
name, d);
131 b.mapStringItem(
name, s);
136 template<
typename Arg>
155 template<
class B,
class T>
183 template<
class B,
class T>
224 template<
typename Arg>
261 template<
typename Arg>
264 b.streamObjectsMessage(a);
T operator<<(EndMap)
End this map.
T operator<<(std::int64_t i)
Send an integer value.
T operator<<(const std::string &s)
Send a string value.
EncMap< B, EncList< B, T > > operator<<(const BeginMap &)
Start a map.
EncMapValue< B, EncMap< B, T > > operator<<(const std::string &name)
Start a value with its name.
std::string name
The name of this item.
EncMap< B, FunkyEncoder > operator<<(const BeginMap &)
Start a message (as a map).
T operator<<(double d)
Send a double value.
B & b
The bridge or encoder that is written to.
B & b
The bridge or encoder that is written to.
T operator<<(const Arg &a)
If the encoder supports it, send any kind of value.
B & b
The bridge or encoder that is written to.
B & b
The bridge or encoder that is written to.
EncMap< B, T > operator<<(const BeginMap &)
Begin a map.
T operator<<(EndList)
End this list.