BOSS
7.0.4
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
Enumerations
_
e
f
g
h
i
l
m
o
p
r
s
t
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
w
x
Files
File List
File Members
All
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
!
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
z
Enumerations
d
e
g
h
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
DistBoss/RootFile/RootFile-00-00-05/test/test.cxx
Go to the documentation of this file.
1
#include "RootFile/RootFileWriter.h"
2
#include <fstream>
3
#include <stdlib.h>
4
5
int
main
(
int
argc,
char
* argv[])
6
{
7
if
( argc != 2 ) {
8
std::cout <<
"Usage: "
<< argv[0] <<
" input.file"
<< std::endl;
9
exit(0);
10
}
11
12
char
buf[512*1024];
13
std::ifstream ifs(argv[1], std::ios::binary);
14
ifs.read(buf, 512*1024);
15
16
RootFileWriter
writer(
"test_out.root"
);
17
writer.
writeEvent
((
void
*)buf, ifs.gcount());
18
19
writer.
close
();
20
21
return
0;
22
}
RootFileWriter
Definition:
DistBoss/RootFile/RootFile-00-00-05/RootFile/RootFileWriter.h:12
RootFileWriter::close
int close()
Definition:
RootFileWriter.cxx:92
RootFileWriter::writeEvent
int writeEvent(void *pevt, int size)
Definition:
RootFileWriter.cxx:35
main
int main()
Definition:
test_IFile.cxx:11
source
DistBoss
RootFile
RootFile-00-00-05
test
test.cxx
Generated by
1.9.6