#ifndef LEVEL0_BALANCE_TIMES_2007_12_12 #define LEVEL0_BALANCE_TIMES_2007_12_12 /** @file BalanceTimes.h @author Brian Magill @datecreated 02/16/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 Contains the starting and ending times for the balance maneuver */ //---------------------------------------------------------------------- // class BalanceTimes { private: double start_time; double end_time; bool dataAvail; public: BalanceTimes():start_time(0.), end_time(0.), dataAvail(false) { } BalanceTimes(double s, double e):start_time(s), end_time(e), dataAvail(true) { } BalanceTimes(BalanceTimes const& rhs): start_time(rhs.start_time), end_time(rhs.end_time), dataAvail(rhs.dataAvail) { } BalanceTimes& operator = (BalanceTimes const& rhs ) { if(&rhs == this) return *this; start_time = rhs.start_time; end_time = rhs.end_time; dataAvail = rhs.dataAvail; return *this; }; ~BalanceTimes() { }; double getStartTime() const {return start_time; } double getEndtTime() const {return end_time; } bool hasData() const {return dataAvail; } }; #endif