/** @class ODBInputParam.cpp @author Brian Magill @datecreated 6/23/2006 $Date:$ $Revision:$ @copyright (©) Copyright 2006 by GATS Inc. 11864 Canon Blvd., Suite 101, Newport News, VA 23606 All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of GATS Inc. @brief Class for organizing SOFIE input data parameters */ #include "DBInputParam.h" //#include "MiscExceptions.h" #include using namespace std; using namespace gatsDBpp; DBInputParam::DBInputParam() { }; DBInputParam::DBInputParam(string configSection, ConfigFile *config, GATS_DB *conn) { dbConn = conn; setConfiguration(configSection, config); } DBInputParam::~DBInputParam(){ }; void DBInputParam::setConfiguration(string configSection, ConfigFile *config) { try { // Only want the first value of string array (should only be one value) sofieSummary = (config->GetStrValues(configSection, "sofieSummary") )[0]; signalTable = (config->GetStrValues(configSection, "signalTable") )[0]; solTrackTable = (config->GetStrValues(configSection, "solTrackTable") )[0]; solImgTable = (config->GetStrValues(configSection, "solImgTable") )[0]; hskpTable = (config->GetStrValues(configSection, "hskpTable") )[0]; tagsTable = (config->GetStrValues(configSection, "eventTagsTable") )[0]; balTimesTable = (config->GetStrValues(configSection, "balanceTimesTable") )[0]; version_Id = (config->GetStrValues(configSection, "version_Id") )[0]; } catch (exception &ex) { string errMsg = string("DBInputParam::Problem using Configuration file. Error: ") + ex.what(); throw runtime_error(errMsg); } } // DBInputParam(DBInputParam const& rhs ) // { // // dbConn = rhs.dbConn; // // config = rhs.config; // // SofieSummary = rhs.sofieSummary; // // signalTable = rhs.signalTable; // // solTrackTable = rhs.solTrackTable; // // solImgTable = rhs.solImgTable; // // hskpTable = rhs.hskpTable; // // } // DBInputParam& operator = (DBInputParam const& rhs ) // { // // if(rhs == this) // return *this; // // // dbConn = rhs.dbConn; // // config = rhs.config; // // SofieSummary = rhs.sofieSummary; // // signalTable = rhs.signalTable; // // solTrackTable = rhs.solTrackTable; // // solImgTable = rhs.solImgTable; // // hskpTable = rhs.hskpTable; // // return *this; // // }