#ifndef OUTPUT_EVENT_VECTOR_2007_03_09 #define OUTPUT_EVENT_VECTOR_2007_03_09 /** @file OutputEventVect.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 returns a vector of data associated with a given table parameter */ //---------------------------------------------------------------------- // #include #include #include "Event.h" #include "GATS_DB.h" #include "GATS_DB_Exception.h" #include "GATS_Utilities.hpp" class OutputEventVect { private: Event *L1_Output; gatsDBpp::GATS_DB *dbConn; std::string metaSumTable; std::string metaVectTable; std::string metaStructTable; std::string metaIndepend; std::string metaParamTable; public: OutputEventVect():L1_Output(0), dbConn(0), metaSumTable(""), metaVectTable(""), metaStructTable(""), metaIndepend(""), metaParamTable("") { } OutputEventVect(Event &out, gatsDBpp::GATS_DB &conn, const std::string &sum, const std::string &varVec, const std::string &st, const std::string &indep, const std::string ¶m): L1_Output(&out), dbConn(&conn), metaSumTable(sum), metaVectTable(varVec), metaStructTable(st), metaIndepend(indep), metaParamTable(param) { } OutputEventVect(OutputEventVect const&rhs):L1_Output(rhs.L1_Output), dbConn(rhs.dbConn), metaSumTable(rhs.metaSumTable), metaVectTable(rhs.metaVectTable), metaStructTable(rhs.metaStructTable), metaIndepend(rhs.metaIndepend), metaParamTable(rhs.metaParamTable) { } OutputEventVect& operator = (OutputEventVect const& rhs ) { if (this == &rhs) return *this; L1_Output = rhs.L1_Output; dbConn = rhs.dbConn; metaSumTable = rhs.metaSumTable; metaVectTable = rhs.metaVectTable; metaStructTable = rhs.metaStructTable; metaIndepend = rhs.metaIndepend; metaParamTable = rhs.metaParamTable; return *this; }; ~OutputEventVect() { }; void operator() (std::string TableName) const; }; #endif