#ifndef META_SINGLE_VALUE_2008_07_23 #define META_SINGLE_VALUE_2008_07_23 /** @file MetaSingleValue.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 Writes out single values */ //---------------------------------------------------------------------- // #include #include #include "Event.h" #include "GATS_DB.h" #include "GATS_DB_Exception.h" #include "GATS_Utilities.hpp" class MetaSingleValue { 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: MetaSingleValue():inEvent(0), dbConn(0), metaTable("") { }; MetaSingleValue(Event &in, gatsDBpp::GATS_DB &conn, std::string name): inEvent(&in), dbConn(&conn), metaTable(name) { }; MetaSingleValue(MetaSingleValue const&rhs):inEvent(rhs.inEvent), dbConn(rhs.dbConn), metaTable(rhs.metaTable){ }; MetaSingleValue& operator = (MetaSingleValue const& rhs ) { if (this == &rhs) return *this; inEvent = rhs.inEvent; dbConn = rhs.dbConn; metaTable = rhs.metaTable; return *this; }; ~MetaSingleValue() { }; 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; double getData(std::string tableName, std::string Parameter) const; std::vector getParameterList(std::string tableName) const; std::vector getTableList() const; }; #endif