#ifndef FIND_INDEPENDENT_VARIBLE_2008_02_22 #define FIND_INDEPENDENT_VARIBLE_2008_02_22 /** @file FindIndependVar.h @author Brian Magill @datecreated 2/22/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 Returns the independent variable associated with a table */ //---------------------------------------------------------------------- // #include #include //#include "Event.h" #include "GATS_DB.h" #include "GATS_DB_Exception.h" #include "GATS_Utilities.hpp" class FindIndependVar { private: gatsDBpp::GATS_DB *dbConn; std::string metaSummary; std::string IndepVarTable; std::string dependTable; public: FindIndependVar():dbConn(0), metaSummary(""), IndepVarTable(""), dependTable("") { } FindIndependVar(gatsDBpp::GATS_DB &conn, std::string sum, std::string indp, std::string depend): dbConn(&conn), metaSummary(sum), IndepVarTable(indp), dependTable(depend) { } FindIndependVar(FindIndependVar const&rhs): dbConn(rhs.dbConn), metaSummary(rhs.metaSummary), IndepVarTable(rhs.IndepVarTable), dependTable(rhs.dependTable) { } FindIndependVar& operator = (FindIndependVar const& rhs ) { if (this == &rhs) return *this; dbConn = rhs.dbConn; metaSummary = rhs.metaSummary; IndepVarTable = rhs.IndepVarTable; dependTable = rhs.dependTable; return *this; }; ~FindIndependVar() { }; std::string operator () (std::string tableName) const; }; #endif