Class Hierarchy   Class Index   Method Index  

CHMostreamOperator.h

00001 #ifndef __CHM_IOSTREAM_H__
00002 #define __CHM_IOSTREAM_H__
00003 
00009 #include <iostream.h>
00010 
00011 #include <CHM/CHMdateTime.h>
00012 #include <CHM/CHMengineClass.h>
00013 #include <CHM/CHMerrorClass.h>
00014 #include <CHM/CHMstring.h>
00015 #include <CHM/CHMtableClass.h>
00016 
00017 ostream& operator<<(ostream& Stream, const CHMstring& String)
00018 {
00019    return Stream << String.c_str();
00020 }
00021 
00022 ostream& operator<<(ostream& Stream, const CHMdateTime& DateTime)
00023 {
00024    return Stream << DateTime.Dump();
00025 }
00026 
00027 ostream& operator<<(ostream& Stream, const CHMengine& Engine)
00028 {
00029    return Stream << Engine.Dump();
00030 }
00031 
00032 ostream& operator<<(ostream& Stream, const CHMerror& Error)
00033 {
00034    return Stream << Error.Dump();
00035 }
00036 
00037 ostream& operator<<(ostream& Stream, const CHMtable& Table)
00038 {
00039    return Stream << Table.Dump();
00040 }
00041 
00042 #endif