#ifndef OUTPUT_SINGLE_VALUE_2008_07_23 #define OUTPUT_SINGLE_VALUE_2008_07_23 /** @file OutputSingleValue.h @author Brian Magill @date 7/23/2008 $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 out the single values produced by Level 1 */ //---------------------------------------------------------------------- // #include #include #include "Event.h" #include "GATS_DB.h" #include "GATS_DB_Exception.h" #include "GATS_Utilities.hpp" class OutputSingleValue { private: Event *L1_Output; gatsDBpp::GATS_DB *dbConn; std::string metaSumTable; std::string metaValueTable; std::string metaStructTable; public: OutputSingleValue():L1_Output(0), dbConn(0), metaSumTable(""), metaValueTable(""), metaStructTable("") { }; OutputSingleValue(Event &out, gatsDBpp::GATS_DB &conn, std::string sum, std::string param, std::string st): L1_Output(&out), dbConn(&conn), metaSumTable(sum), metaValueTable(param), metaStructTable(st) { }; OutputSingleValue(OutputSingleValue const&rhs):L1_Output(rhs.L1_Output), dbConn(rhs.dbConn), metaSumTable(rhs.metaSumTable), metaValueTable(rhs.metaValueTable), metaStructTable(rhs.metaStructTable) { }; OutputSingleValue& operator = (OutputSingleValue const& rhs ) { if (this == &rhs) return *this; L1_Output = rhs.L1_Output; dbConn = rhs.dbConn; metaSumTable = rhs.metaSumTable; metaValueTable = rhs.metaValueTable; metaStructTable = rhs.metaStructTable;; return *this; }; ~OutputSingleValue() { }; void operator() (std::string TableName) const; }; #endif