#ifndef META_SUMMARY_2007_03_05 #define META_SUMMARY_2007_03_05 /** @file MetaSummary.h @author Brian Magill @datecreated 3/05/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 the expected size of the arrays to be written to database The SOFIE Level 1 database contains a table that contains the Level 1 Event Class object associated with the index used for access in a given table. The main interest here is ensuring that the count for all parameters for a given event and index field are the same. */ //---------------------------------------------------------------------- // #include #include #include "Event.h" #include "GATS_DB.h" #include "GATS_DB_Exception.h" #include "GATS_Utilities.hpp" class MetaSummary { private: Event *inEvent; gatsDBpp::GATS_DB *dbConn; std::string metaTable; public: MetaSummary():inEvent(0), dbConn(0), metaTable("") { }; MetaSummary(Event &in, gatsDBpp::GATS_DB &conn, std::string name): inEvent(&in), dbConn(&conn), metaTable(name) { }; MetaSummary(MetaSummary const&rhs):inEvent(rhs.inEvent), dbConn(rhs.dbConn), metaTable(rhs.metaTable){ }; MetaSummary& operator = (MetaSummary const& rhs ) { if (this == &rhs) return *this; inEvent = rhs.inEvent; dbConn = rhs.dbConn; metaTable = rhs.metaTable; return *this; }; ~MetaSummary() { }; bool EntryExists(std::string tableName) const; std::string AssocEntryName(std::string tableName) const; long getIndexSize(std::string tableName) const; bool processTable(std::string tableName) const; }; #endif