g4tools  5.4.0
object
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_rroot_Object
5 #define tools_rroot_Object
6 
7 #include "buffer"
8 
9 namespace tools {
10 namespace rroot {
11 
12 inline bool Object_stream(buffer& a_buffer,uint32& a_id,uint32& a_bits) {
13  short v;
14  if(!a_buffer.read_version(v)) return false;
15  if(!a_buffer.read(a_id)) return false;
16  if(!a_buffer.read(a_bits)) return false;
17  return true;
18 }
19 
20 }}
21 
22 #endif
tools::rroot::Object_stream
bool Object_stream(buffer &a_buffer, uint32 &a_id, uint32 &a_bits)
Definition: object:12
buffer
tools::rroot::buffer::read_version
bool read_version(short &a_version)
Definition: buffer:503
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::rroot::buffer
Definition: buffer:43
tools::rroot::rbuf::read
bool read(unsigned char &a_x)
Definition: rbuf:146
tools::uint32
unsigned int uint32
Definition: typedefs:71