// lrscfg.cpp: implementation of the LrsCfg class.
//
//////////////////////////////////////////////////////////////////////
#include "lrscfg.h"
#include "debug.h"
#include <stdio.h>
#include "errorlog.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

LrsCfg::LrsCfg()
{	
	
}

LrsCfg::~LrsCfg()
{

}

void LrsCfg::initialize()
{
	ConfigItemWrapper item;
	
	InstrumentCfg::initialize("lrs.cfg");
}

MBool LrsCfg::searchForConfigItem(const char * name, ConfigItemWrapper &item)
{
	return InstrumentCfg::searchForConfigItem(name, item);
}

void LrsCfg::saveConfigItems()
{	
	// Saves instrument configuration items to disk. Replaces the existing
	// .cfg file with the current state of the instrument. 

	// Note, the .cal file is not replaced - it is READ only
	InstrumentCfg::saveConfigItems(0);
}
