//-------------------------------------------------------------------------------------------------
// <copyright file="ServerExecSettings.cpp" company="LiquidRobotics">
//  Copyright (c) Liquid Robotics Corporation, confidential and proprietary.  All rights reserved. 
// </copyright>
//
// <summary>
// Implementation for ServerExecSettings, a serializable entity class that holds the settings for
// the ServerExec module
// </summary>
//
// <owner>Mike Cookson</owner>
//-------------------------------------------------------------------------------------------------

#include "ServerExecSettings.h"
#include "LqrSMACLoadSaveBoostXml.h"
#include <iostream>
#include <fstream>
#include <string>

using namespace std;
using namespace boost;
using namespace boost::archive;
using namespace boost::serialization;
using namespace LiquidRobotics::SMACFramework;
using namespace LiquidRobotics::EventLib;

ServerExecSettings::ServerExecSettings()
: rootLevel("rootLevel")
, className("ServerExecSettings")
, serverBaseName("ServerExec")
//, serverType("")
, maxCommandSize(64*1024*1024L)
, commandCompleteEvent("CommandComplete", "SendCommandCompleteEvent", "LiquidR-SMC")
{
}

void ServerExecSettings::Load(const string& fileName)
{
	LoadBoostXml(fileName, *this);
}

void ServerExecSettings::Save(const string& fileName) const
{
	SaveBoostXml(fileName, *this);
}
