home *** CD-ROM | disk | FTP | other *** search
- #pragma once
- //
- // my first stream subclass!! (if it worked)
- //
- #define it_doesnt_work
-
- #ifdef it_doesnt_work
- class outputfile
- #else
- class outputfile : public ofstream
- #endif
- {
- public:
- //
- // Note: the name_locked flag only makes sense on a Macintosh
- //
- outputfile( char *postfix, Boolean name_locked = true);
-
- char *operator()() const;
-
- private:
- char filename[ 256];
-
- static void set2chars( const int n, char *two_chars);
-
- static void setoutfilename( char *yymmdd_hhmmss_plus_postfix);
- };
-