SST/macro
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sprockit
sprockit
serialize_unpacker.h
Go to the documentation of this file.
1
#ifndef SERIALIZE_UNPACKER_H
2
#define SERIALIZE_UNPACKER_H
3
4
#include <
sprockit/serialize_buffer_accessor.h
>
5
6
namespace
sprockit
{
7
namespace
pvt {
8
9
class
ser_unpacker
:
10
public
ser_buffer_accessor
11
{
12
public
:
13
template
<
class
T>
14
void
15
unpack
(T& t){
16
T* bufptr = ser_buffer_accessor::next<T>();
17
t = *bufptr;
18
}
19
20
void
21
unpack_buffer
(
void
* buf,
int
size
);
22
23
void
24
unpack_string
(std::string& str);
25
26
};
27
28
} }
29
30
#endif // SERIALIZE_UNPACKER_H
sprockit::pvt::ser_buffer_accessor::size
size_t size() const
Definition:
serialize_buffer_accessor.h:40
sprockit::pvt::ser_buffer_accessor
Definition:
serialize_buffer_accessor.h:18
sprockit
Definition:
basic_string_tokenizer.h:21
sprockit::pvt::ser_unpacker
Definition:
serialize_unpacker.h:9
serialize_buffer_accessor.h
sprockit::pvt::ser_unpacker::unpack
void unpack(T &t)
Definition:
serialize_unpacker.h:15
sprockit::pvt::ser_unpacker::unpack_buffer
void unpack_buffer(void *buf, int size)
sprockit::pvt::ser_unpacker::unpack_string
void unpack_string(std::string &str)
Generated by
1.8.11