StatisticProperties.cc 1.63 KB
/*
 * StatisticProperties.cc
 *
 *  Created on: Nov 04, 2014
 *      Author: AKKA
 */

#include "StatisticProperties.hh"

namespace AMDA {
namespace ParamOutputImpl {
namespace Statistic {

StatisticProperties::StatisticProperties() :
		_timeFormat(TimeTableCatalog::TimeTable::TIME_FORMAT::UNKNOWN),
		_fileFormatKey(""),
		_fileName(""), _outputStructure(ONE_FILE)
{
}

StatisticProperties::~StatisticProperties() {
	for (auto paramProperties : _paramPropertiesList) {
		delete paramProperties;
	}
	_paramPropertiesList.clear();
}

TimeTableCatalog::TimeTable::TIME_FORMAT StatisticProperties::getTimeFormat() const
{
	return _timeFormat;
}

void StatisticProperties::setTimeFormat(TimeTableCatalog::TimeTable::TIME_FORMAT timeFormat)
{
	_timeFormat = timeFormat;
}

std::string StatisticProperties::getFileFormatKey() const
{
	return _fileFormatKey;
}

void StatisticProperties::setFileFormatKey(std::string fileFormatKey)
{
	_fileFormatKey = fileFormatKey;
}

const std::string& StatisticProperties::getFileName() const {
	return _fileName;
}

void StatisticProperties::setFileName(const std::string& fileName) {
	_fileName = fileName;
}

OutputStructure StatisticProperties::getOutputStructure() const
{
	return _outputStructure;
}

void StatisticProperties::setOutputStructure(OutputStructure outputStructure)
{
	_outputStructure = outputStructure;
}

ParamPropertiesList& StatisticProperties::getParamPropertiesList() {
	return _paramPropertiesList;
}

void StatisticProperties::addParamProperties(ParamProperties *paramProperties) {
	_paramPropertiesList.push_back (paramProperties);
}

} // namespace Statistic
} // namespace ParamOutputImpl
} // namespace AMDA