CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
11  explicit binary_ofstream( const char* name);
12  explicit binary_ofstream( const std::string& name);
13 
15 
17  binary_ofstream& operator<<( unsigned char n);
18 
19  binary_ofstream& operator<<( short n);
20  binary_ofstream& operator<<( unsigned short n);
21 
22  binary_ofstream& operator<<( int n);
23  binary_ofstream& operator<<( unsigned int n);
24 
25  binary_ofstream& operator<<( long n);
26  binary_ofstream& operator<<( unsigned long n);
27 
28  binary_ofstream& operator<<( float n);
29  binary_ofstream& operator<<( double n);
30 
31  binary_ofstream& operator<<( bool n);
33 
34  void close();
35 
36 private:
37 
38  FILE* file_;
39 
40  void init( const char* name);
41 
42 };
43 
44 #endif
void init(const char *name)
binary_ofstream(const char *name)
binary_ofstream & operator<<(char n)