// // Programmer: Craig Stuart Sapp // Creation Date: Fri May 1 20:00:52 PDT 1998 // Last Modified: Fri May 8 21:08:56 PDT 1998 // Filename: ...sig/code/base/BitFileOut/BitFileOut.h // Syntax: C++ // $Smake: cc -Wall -g -c %b.cpp -I../../../include && rm -f %b.o // #ifndef _BITFILEOUT_H_INCLUDED #define _BITFILEOUT_H_INCLUDED #ifndef OLDCPP #include using namespace std; #else #include #endif class BitFileOut : public ofstream { public: BitFileOut (void); #ifndef OLDCPP BitFileOut (const char* filename, ios::openmode state); #else BitFileOut (const char* filename, int state = 0); #endif ~BitFileOut (); void writeBits (long bits, int bitCount); int byteAlign (void); protected: int bitsInByte; // num of temp stored bits in storage int outStorage; // temporary storage for output }; #endif /* _BITFILEOUT_H_INCLUDED */ // md5sum: 8d24fd9feb3f2028fb083e4cf73c52eb BitFileOut.h [20050403]