Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
xdr_out.cpp
Go to the documentation of this file.
1
#include <
xstream/xdr.h
>
2
#include "
xdr_test.h
"
3
4
#include <iostream>
5
#include <stdexcept>
6
7
using namespace
std;;
8
using namespace
xstream;;
9
10
int
main
(
int
argc,
char
* argv[]){
11
try
{
12
xdr::ostream
xdr_o(cout);
13
14
struct
test
o=
get_obj
();
15
xdr_o<<o.
i
<<o.
ui
<<o.
f
<<o.
d
<<o.
li
<<o.
uli
<<o.
s
<<o.
vi
;;
16
}
17
catch
(exception&
e
){
18
cerr<<
"Error: "
<<e.what()<<endl;
19
}
20
21
return
0;
22
}
test::i
int i
Definition:
xdr_test.h:8
xdr.h
C++ iostream like interface to read and write xdr streams.
test::d
double d
Definition:
xdr_test.h:11
test::li
long long int li
Definition:
xdr_test.h:12
xstream::xdr::ostream
Output xdr stream class.
Definition:
xdr.h:62
test::uli
unsigned long long int uli
Definition:
xdr_test.h:13
test::ui
unsigned int ui
Definition:
xdr_test.h:9
e
TEllipse * e
Definition:
occupancy_online/CDC_occupancy.C:78
get_obj
struct test get_obj(void)
Definition:
xdr_test.cpp:21
test::vi
vector< int > vi
Definition:
xdr_test.h:16
test
Definition:
xdr_test.h:7
test::s
string s
Definition:
xdr_test.h:14
test::f
float f
Definition:
xdr_test.h:10
main
int main(int argc, char *argv[])
Definition:
gendoc.cc:6
xdr_test.h
external
xstream
examples
xdr_out.cpp
Generated on Fri Jul 26 2019 14:03:11 for Hall-D Software by
1.8.5