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 
8 public:
9 
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 
18  binary_ofstream& operator<<( short n);
19  binary_ofstream& operator<<( unsigned short n);
20 
21  binary_ofstream& operator<<( int n);
22  binary_ofstream& operator<<( unsigned int n);
23 
24  binary_ofstream& operator<<( long n);
25  binary_ofstream& operator<<( unsigned long n);
26 
27  binary_ofstream& operator<<( float n);
28  binary_ofstream& operator<<( double n);
29 
30  binary_ofstream& operator<<( bool n);
31  binary_ofstream& operator<<( const std::string& n);
32 
33  void close();
34 
35 private:
36 
37  FILE* file_;
38 
39  void init( const char* name);
40 
41 };
42 
43 #endif
void init(const char *name)
binary_ofstream(const char *name)
binary_ofstream & operator<<(char n)