summaryrefslogtreecommitdiff
path: root/project2/fileStrmVarWriter.h
blob: b98691bc99ad7487973d87b0cb8283f93303877b (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
#ifndef FILESTREAMVARWRITER_H
#define FILESTREAMVARWRITER_H

#include "variables.h"

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

		void operator()(const Null &) const;
		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::posix_time::ptime & i) const;

	private:
		FILE * out;
		bool quoting;
};

#endif