#ifndef OUTPUT_EVENT_VAR_2007_03_08 #define OUTPUT_EVENT_VAR_2007_03_08 /** @file OutputEventVar.h @author Brian Magill @date 3/08/2007 $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 writes a vector of data associated with a given parameter to the database. */ //---------------------------------------------------------------------- // #include #include #include "Event.h" #include "GATS_DB.h" #include "GATS_DB_Exception.h" #include "GATS_Utilities.hpp" class OutputEventVar { private: Event *L1_Output; gatsDBpp::GATS_DB *dbConn; std::string metaSumTable; std::string metaParamTable; std::string metaStructTable; std::string metaIndepend; public: OutputEventVar():L1_Output(0), dbConn(0), metaSumTable(""), metaParamTable(""), metaStructTable(""), metaIndepend("") { } OutputEventVar(Event &out, gatsDBpp::GATS_DB &conn, std::string sum, std::string param, std::string st, std::string indep): L1_Output(&out), dbConn(&conn), metaSumTable(sum), metaParamTable(param), metaStructTable(st), metaIndepend(indep) { } OutputEventVar(OutputEventVar const&rhs):L1_Output(rhs.L1_Output), dbConn(rhs.dbConn), metaSumTable(rhs.metaSumTable), metaParamTable(rhs.metaParamTable), metaStructTable(rhs.metaStructTable), metaIndepend(rhs.metaIndepend) { } OutputEventVar& operator = (OutputEventVar const& rhs ) { if (this == &rhs) return *this; L1_Output = rhs.L1_Output; dbConn = rhs.dbConn; metaSumTable = rhs.metaSumTable; metaParamTable = rhs.metaParamTable; metaStructTable = rhs.metaStructTable; metaIndepend = rhs.metaIndepend; return *this; }; ~OutputEventVar() { }; void operator() (std::string TableName) const; }; #endif