summaryrefslogtreecommitdiff
path: root/project2/fileStrmVarWriter.h
blob: ecd65b6b07fafeaa7916e4fa1f50fcb052be9414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef FILESTREAMVARWRITER_H
#define FILESTREAMVARWRITER_H

#include "variables.h"

class FileStreamVariableWriter : public boost::static_visitor<> {
	public:
		FileStreamVariableWriter(FILE *, bool quoting);
		~FileStreamVariableWriter();

		void operator()(const long long int & i) const;
		void operator()(const long int & i) const;
		void operator()(const int & i) const;
		void operator()(const short int & i) const;
		void operator()(const long long unsigned int & i) const;
		void operator()(const long unsigned int & i) const;
		void operator()(const unsigned int & i) const;
		void operator()(const short unsigned int & i) const;
		void operator()(const float & i) const;
		void operator()(const double & i) const;
		void operator()(const Glib::ustring & i) const;
		void operator()(const boost::shared_ptr<const Glib::ustring> & i) const;
		void operator()(const boost::posix_time::ptime & i) const;
		void operator()(const boost::shared_ptr<const boost::posix_time::ptime> & i) const;

	private:
		FILE * out;
		bool quoting;
};

#endif