#ifndef CHECK_DARK_SIGNAL_6_13_2007 #define CHECK_DARK_SIGNAL_6_13_2007 /** @class CheckDark.h @author Brian Magill @creation date 6/13/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 Checks the dark signal offset to ensure that it is reasonable */ #include "CheckDarkAbstract.h" class CheckDark:public CheckDarkAbstract { private: double maximum; double minimum; public: CheckDark(double max = 30.0, double min = 0.0):maximum(max), minimum(min) { } CheckDark(CheckDark const &rhs):maximum(rhs.maximum), minimum(rhs.minimum) { } CheckDark & operator =(CheckDark const &rhs) { if (this == &rhs) return *this; maximum = rhs.maximum; minimum = rhs.minimum; return *this; } ~CheckDark() { }; bool verify(double offset) { bool result = false; if (minimum <= offset && offset <= maximum) result = true; return result; } }; #endif