#ifndef META_EVENT_STATS_2007_09_18 #define META_EVENT_STATS_2007_09_18 /** @file MetaEventStats.h @author Brian Magill @date 9/18/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 Writes out event statistics or figure-of-merit to table */ //---------------------------------------------------------------------- // #include #include #include "Event.h" #include "GATS_DB.h" #include "GATS_DB_Exception.h" #include "GATS_Utilities.hpp" class MetaEventStats { private: Event *inEvent; gatsDBpp::GATS_DB *dbConn; std::string metaTable; // table of meta data associating a Level 1 table with an Event oject array public: MetaEventStats():inEvent(0), dbConn(0), metaTable("") { }; MetaEventStats(Event &in, gatsDBpp::GATS_DB &conn, std::string name): inEvent(&in), dbConn(&conn), metaTable(name) { }; MetaEventStats(MetaEventStats const&rhs):inEvent(rhs.inEvent), dbConn(rhs.dbConn), metaTable(rhs.metaTable){ }; MetaEventStats& operator = (MetaEventStats const& rhs ) { if (this == &rhs) return *this; inEvent = rhs.inEvent; dbConn = rhs.dbConn; metaTable = rhs.metaTable; return *this; }; ~MetaEventStats() { }; bool TableExists(std::string tableName) const; bool EntryExists(std::string tableName, std::string Parameter) const; std::string getEntryName(std::string tableName, std::string Parameter) const; std::vector getData(std::string tableName, std::string Parameter) const; std::vector getParameterList(std::string tableName) const; std::vector getTableList() const; }; #endif