/*
 * CStringDump.h
 *
 *  Created on: 16.05.2015
 *      Author: Dag
 */

#ifndef CSTRINGDUMP_H_
#define CSTRINGDUMP_H_

#include <string>
#include <list>

class CStringDump
{

public:

							CStringDump					(std::string sBaseFileName);
	virtual 				~CStringDump				();

	void					Add							(std::string sLine);
	void					Dump						();
	void					Reset						();
	int						GetCount					() { return m_Count; }

protected:

	std::string 			GetDateTime					(char seperator, char timeSeperator);

private:
	std::string				m_sBaseFileName;
	std::list<std::string>	m_sList;
	FILE*					m_pFile;
	int						m_Count;

};

#endif /* CSTRINGDUMP_H_ */
