WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WXP::DateRange Class Reference

This class is used to set a valid range of time. More...

#include "../include/DateRange.h"

Public Member Functions

 DateRange ()
 
 DateRange (Date &rdate, int rpre, int rpost)
 
int set (Date &rdate, int rpre, int rpost)
 
int set (int rpre, int rpost)
 
int set (Date &rdate)
 
int init ()
 
bool valid (Date &date)
 
bool valid (int secs)
 
int print ()
 

Detailed Description

This class is used to set a valid range of time.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ DateRange() [1/2]

DateRange::DateRange ( )

Constructor. Initializes the class values

References init().

◆ DateRange() [2/2]

DateRange::DateRange ( Date date,
int  pre,
int  post 
)

Constructor. Sets the valid range

Parameters
dateThe base date
preThe number of minutes prior to time
postThe number of minutes after the time

References init(), and set().

Member Function Documentation

◆ init()

int DateRange::init ( )

Initializes the object

References WXP::Const::MISS.

Referenced by DateRange(), and DateRange().

◆ set()

int DateRange::set ( Date date,
int  rpre,
int  rpost 
)

Sets the valid range

Parameters
dateThe base date
rpreThe number of minutes prior to time
rpostThe number of minutes after the time

References WXP::Date::getSeconds().

Referenced by DateRange(), WXP::RcmDecode::decode(), WXP::UpaDecode::init(), WXP::MdrImage::readFile(), and WXP::UpaDecode::setParam().

◆ valid() [1/2]

bool DateRange::valid ( Date date)

Checks to see if date is within range

Parameters
dateDate to check
Returns
True if within

References WXP::Date::getSeconds().

Referenced by WXP::UpaDecode::decode(), WXP::LightPlot::draw(), and WXP::MdrImage::readFile().

◆ valid() [2/2]

bool DateRange::valid ( int  rsecs)

Checks to see if date is within range

Parameters
dateDate to check
Returns
True if within

The documentation for this class was generated from the following files: