#ifndef EVENT_VAR_LENGTH_2008_02_22 #define EVENT_VAR_LENGTH_2008_02_22 /** @file EventVarLength.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 length of an EventVar object stored in an Event object */ //---------------------------------------------------------------------- // #include #include #include "Event.h" // #include "GATS_DB.h" // #include "GATS_DB_Exception.h" // #include "GATS_Utilities.hpp" class EventVarLength { private: Event *inEvent; public: EventVarLength():inEvent(0) { } EventVarLength(Event &in): inEvent(&in) { } EventVarLength(EventVarLength const&rhs):inEvent(rhs.inEvent) { } EventVarLength& operator = (EventVarLength const& rhs ) { if (this == &rhs) return *this; inEvent = rhs.inEvent; return *this; }; ~EventVarLength() { }; long operator () (std::string varName) const; }; #endif