SST/macro
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sprockit
sprockit
serialize_packer.h
Go to the documentation of this file.
1
#ifndef SERIALIZE_PACKER_H
2
#define SERIALIZE_PACKER_H
3
4
#include <
sprockit/serialize_buffer_accessor.h
>
5
#include <string>
6
7
namespace
sprockit
{
8
namespace
pvt {
9
10
class
ser_packer
:
11
public
ser_buffer_accessor
12
{
13
public
:
14
template
<
class
T>
15
void
16
pack
(T& t){
17
T* buf = ser_buffer_accessor::next<T>();
18
*buf = t;
19
}
20
21
void
22
pack_buffer
(
void
* buf,
int
size
);
23
24
void
25
pack_string
(std::string& str);
26
27
};
28
29
} }
30
31
#endif // SERIALIZE_PACKER_H
sprockit::pvt::ser_packer::pack_buffer
void pack_buffer(void *buf, int size)
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
serialize_buffer_accessor.h
sprockit::pvt::ser_packer::pack_string
void pack_string(std::string &str)
sprockit::pvt::ser_packer::pack
void pack(T &t)
Definition:
serialize_packer.h:16
sprockit::pvt::ser_packer
Definition:
serialize_packer.h:10
Generated by
1.8.11