7 #ifndef ATLAS_CODECS_PACKED_H
8 #define ATLAS_CODECS_PACKED_H
11 #include <Atlas/Codec.h>
16 namespace Atlas {
namespace Codecs {
45 virtual void poll(
bool can_read =
true);
51 virtual void mapMapItem(
const std::string& name);
53 virtual void mapIntItem(
const std::string& name,
long);
54 virtual void mapFloatItem(
const std::string& name,
double);
55 virtual void mapStringItem(
const std::string& name,
const std::string&);
67 std::iostream& m_socket;
83 std::stack<State> m_state;
88 inline void parseStream(
char);
89 inline void parseMap(
char);
90 inline void parseList(
char);
91 inline void parseMapBegin(
char);
92 inline void parseListBegin(
char);
93 inline void parseInt(
char);
94 inline void parseFloat(
char);
95 inline void parseString(
char);
96 inline void parseName(
char);
98 inline const std::string hexEncode(
const std::string& data)
100 return hexEncodeWithPrefix(
"+",
"+[]()@#$=", data);
103 inline const std::string hexDecode(
const std::string& data)
105 return hexDecodeWithPrefix(
"+", data);
Atlas stream bridge.
Definition: Bridge.h:35
virtual void listStringItem(const std::string &)
Adds a string to the currently streamed list.
virtual void listListItem()
Starts a list object in the currently streamed list.
virtual void listEnd()
Ends the currently streamed list.
virtual void streamEnd()
Ends the Atlas stream.
virtual void mapStringItem(const std::string &name, const std::string &)
Adds a string to the currently streamed map.
virtual void streamMessage()
Start a message in an Atlas stream.
virtual void mapMapItem(const std::string &name)
Starts a map object to the currently streamed map.
virtual void listMapItem()
Starts a map object in the currently streamed list.
virtual void mapIntItem(const std::string &name, long)
Adds an integer to the currently streames map.
virtual void streamBegin()
Begin an Atlas stream.
Atlas stream codec.
Definition: Codec.h:27
virtual void mapListItem(const std::string &name)
Starts a list object to the currently streamed map.
virtual void listIntItem(long)
Adds an integer to the currently streames list.
The Atlas namespace.
Definition: Bridge.h:20
virtual void mapFloatItem(const std::string &name, double)
Adds a float to the currently streamed map.
virtual void listFloatItem(double)
Adds a float to the currently streamed list.
virtual void mapEnd()
Ends the currently streamed map.
Copyright 2000-2004 the respective authors.
This document can be licensed under the terms of the GNU Free Documentation
License or the GNU General Public License and may be freely distributed under
the terms given by one of these licenses.