00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef LIBAEGIS_IO_H
00021 #define LIBAEGIS_IO_H
00022
00023 #include <common/ac/time.h>
00024
00025 #include <common/main.h>
00026 #include <libaegis/meta_type.h>
00027 #include <libaegis/output.h>
00028
00029 struct sub_context_ty;
00030 class nstring;
00031
00032 #define INTEGER_NOT_SET 0
00033 #define REAL_NOT_SET 0.0
00034 #define TIME_NOT_SET (time_t)0
00035
00036 void boolean_write(output::pointer, const char *, bool, int);
00037 void boolean_write_xml(output::pointer, const char *, bool, int);
00038
00051 void string_write(output::pointer op, const char *name, string_ty *value);
00052
00065 void string_write(output::pointer op, const char *name, const nstring &value);
00066
00078 void string_write_xml(output::pointer op, const char *name, string_ty *value);
00079
00091 void string_write_xml(output::pointer op, const char *name,
00092 const nstring &value);
00093
00094 void integer_write(output::pointer , const char *, long, int);
00095 void integer_write_xml(output::pointer , const char *, long, int);
00096 void real_write(output::pointer , const char *, double, int);
00097 void real_write_xml(output::pointer , const char *, double, int);
00098 void time_write(output::pointer , const char *, time_t, int);
00099 void time_write_xml(output::pointer , const char *, time_t, int);
00100 void io_comment_append(sub_context_ty *, const char *);
00101 void io_comment_emit(output::pointer );
00102
00103 #endif // LIBAEGIS_IO_H