libdballe
5.18
Main Page
Modules
Data Structures
Files
File List
Globals
dballe
core
rawmsg.h
Go to the documentation of this file.
1
/*
2
* dballe/rawmsg - annotated raw buffer
3
*
4
* Copyright (C) 2005--2010 ARPA-SIM <urpsim@smr.arpa.emr.it>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
*
19
* Author: Enrico Zini <enrico@enricozini.com>
20
*/
21
22
#ifndef WREPORT_RAWMSG_H
23
#define WREPORT_RAWMSG_H
24
25
#include <
dballe/core/defs.h
>
26
#include <string>
27
28
namespace
dballe {
29
38
struct
Rawmsg
:
public
std::string
39
{
45
std::string
file
;
47
long
offset
;
49
int
index
;
51
Encoding
encoding
;
52
53
Rawmsg
() :
offset
(0),
index
(0) {}
54
55
// Clear all the contents of this dballe::Rawmsg
56
void
clear() throw ()
57
{
58
std::string::clear();
59
file
.clear();
60
offset
= 0;
61
index
= 0;
62
}
63
};
64
65
}
66
67
/* vim:set ts=4 sw=4: */
68
#endif
Generated on Wed Mar 19 2014 05:22:59 for libdballe by
1.8.1.2