MeshKit  1.0
mstream.hpp
Go to the documentation of this file.
00001 
00007 #ifndef __MESHKIT_MSTREAM_H__
00008 #define __MESHKIT_MSTREAM_H__
00009 
00010 #include <iostream>
00011 #include <fstream>
00012 
00013 class mstream
00014 {
00015   public:
00016   std::ofstream coss;
00017   mstream();
00018   ~mstream();
00019   mstream& operator<< (std::ostream& (*pfun)(std::ostream&));
00020 };
00021 
00022 template <class T>
00023 mstream& operator<< (mstream& st, T val)
00024 {
00025   st.coss << val;
00026   std::cout << val;
00027   return st;
00028 }
00029 
00030 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines