CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
void init(const char *name)
binary_ofstream(const char *name)
binary_ofstream & operator<<(char n)