00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TAO_PSDL_STREAM_H
00021 #define TAO_PSDL_STREAM_H
00022
00023 #include "ace/pre.h"
00024
00025 #include "PSDL_Scope.h"
00026
00027 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00028 # pragma once
00029 #endif
00030
00031 class TAO_PSDL_Stream
00032 {
00033 public:
00034
00035 TAO_PSDL_Stream (void);
00036
00037 ~TAO_PSDL_Stream (void);
00038
00039
00040 int open (const char *fname);
00041
00042
00043 FILE *file (void);
00044
00045
00046
00047 int incr_indent (unsigned short flag=1);
00048
00049
00050
00051 int decr_indent (unsigned short flag=1);
00052
00053
00054 int reset (void);
00055
00056
00057 int indent (void);
00058
00059
00060 int nl (void);
00061
00062
00063 int print (const char *format, ...);
00064
00065
00066
00067
00068 TAO_PSDL_Stream &operator<< (const char *str);
00069
00070 TAO_PSDL_Stream &operator<< (ACE_CString str);
00071
00072 TAO_PSDL_Stream &operator<< (const unsigned long num);
00073
00074
00075 TAO_PSDL_Stream &operator<< (const long num);
00076
00077
00078 private:
00079
00080
00081 FILE *fp_;
00082
00083
00084 int indent_level_;
00085 };
00086
00087
00088 #include "ace/post.h"
00089
00090 #endif