From 3e12a1047ff1e9cfeab0b2b659563fa5042c0dfb Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Fri, 28 Sep 2012 07:24:21 +0000 Subject: i/o for types git-svn-id: file:///home/svn/opt_utilities@246 ed2142bd-67ad-457f-ba7c-d818d4011675 --- interface/opt_io.hpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 interface/opt_io.hpp diff --git a/interface/opt_io.hpp b/interface/opt_io.hpp new file mode 100644 index 0000000..f7b68d8 --- /dev/null +++ b/interface/opt_io.hpp @@ -0,0 +1,31 @@ +#ifndef OPT_IO +#define OPT_IO +#include +#include +#include "core/fitter.hpp" + + +namespace std +{ + template + std::ostream& operator<<(std::ostream& os,const opt_utilities::data& d) + { + os< + std::ostream& operator<<(std::ostream& os,const opt_utilities::data_set& ds) + { + os<<"data set with size of "<ds.size()?ds.size():5; + for(int i=0;i