CMS 3D CMS Logo

binary_ofstream.h
Go to the documentation of this file.
1 #ifndef binary_ofstream_H
2 #define binary_ofstream_H
3 
4 #include <string>
5 #include <cstdio>
6 
9 public:
10  explicit binary_ofstream(const char* name);
11  explicit binary_ofstream(const std::string& name);
12 
14 
16  binary_ofstream& operator<<(unsigned char n);
17 
19  binary_ofstream& operator<<(unsigned short n);
20 
22  binary_ofstream& operator<<(unsigned int n);
23 
25  binary_ofstream& operator<<(unsigned long n);
26 
28  binary_ofstream& operator<<(double n);
29 
32 
33  void close();
34 
35 private:
36  FILE* file_;
37 
38  void init(const char* name);
39 };
40 
41 #endif
Visibility.h
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
binary_ofstream::file_
FILE * file_
Definition: binary_ofstream.h:36
binary_ofstream::binary_ofstream
binary_ofstream(const char *name)
Definition: binary_ofstream.cc:8
binary_ofstream::~binary_ofstream
~binary_ofstream()
Definition: binary_ofstream.cc:20
binary_ofstream::close
void close()
Definition: binary_ofstream.cc:21
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
binary_ofstream
Definition: binary_ofstream.h:8
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
binary_ofstream::init
void init(const char *name)
Definition: binary_ofstream.cc:12
binary_ofstream::operator<<
binary_ofstream & operator<<(char n)
Definition: binary_ofstream.cc:27