Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes
DateNumber Class Reference

A number class that manipulates a string buffer that is also a date. More...

#include <numbers.h>

Inheritance diagram for DateNumber:
Inheritance graph
[legend]
Collaboration diagram for DateNumber:
Collaboration graph
[legend]

Public Member Functions

 DateNumber (char *buffer)
 
virtual ~DateNumber ()
 
void setValue (long value)
 
const char * getBuffer () const
 
long getValue () const
 
long operator() ()
 
 operator long ()
 
 operator char * ()
 
long operator+= (const long value)
 
long operator-= (const long value)
 
long operator-- ()
 
long operator++ ()
 
int operator== (const Number &num)
 
int operator!= (const Number &num)
 
int operator< (const Number &num)
 
int operator<= (const Number &num)
 
int operator> (const Number &num)
 
int operator>= (const Number &num)
 
int getYear (void) const
 
unsigned getMonth (void) const
 
unsigned getDay (void) const
 
unsigned getDayOfWeek (void) const
 
char * getDate (char *buffer) const
 
time_t getDate (void) const
 
time_t getDate (tm *buf) const
 
long getValue (void) const
 
void setDate (const char *str, size_t size=0)
 
bool isValid (void) const
 
 operator long () const
 
String operator() () const
 
Dateoperator++ ()
 
Dateoperator-- ()
 
Dateoperator+= (const long val)
 
Dateoperator-= (const long val)
 
int operator== (const Date &date)
 
int operator!= (const Date &date)
 
int operator< (const Date &date)
 
int operator<= (const Date &date)
 
int operator> (const Date &date)
 
int operator>= (const Date &date)
 
bool operator! () const
 

Protected Member Functions

void update (void)
 A method to use to "post" any changed values when shadowing a mixed object class. More...
 
void toJulian (long year, long month, long day)
 
void fromJulian (char *buf) const
 

Protected Attributes

char * buffer
 
unsigned size
 
long julian
 

Detailed Description

A number class that manipulates a string buffer that is also a date.

Author
David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m a number that is also a date string.

Definition at line 315 of file numbers.h.

Constructor & Destructor Documentation

DateNumber::DateNumber ( char *  buffer)
virtual DateNumber::~DateNumber ( )
virtual

Member Function Documentation

void Date::fromJulian ( char *  buf) const
protectedinherited
const char* Number::getBuffer ( ) const
inlineinherited

Definition at line 100 of file numbers.h.

char* Date::getDate ( char *  buffer) const
inherited
time_t Date::getDate ( void  ) const
inherited
time_t Date::getDate ( tm *  buf) const
inherited
unsigned Date::getDay ( void  ) const
inherited
unsigned Date::getDayOfWeek ( void  ) const
inherited
unsigned Date::getMonth ( void  ) const
inherited
long Number::getValue ( ) const
inherited
long Date::getValue ( void  ) const
inherited
int Date::getYear ( void  ) const
inherited
bool Date::isValid ( void  ) const
inherited
Number::operator char * ( )
inlineinherited

Definition at line 111 of file numbers.h.

Number::operator long ( )
inlineinherited

Definition at line 108 of file numbers.h.

Date::operator long ( ) const
inlineinherited

Definition at line 188 of file numbers.h.

bool Date::operator! ( ) const
inlineinherited

Definition at line 202 of file numbers.h.

int Number::operator!= ( const Number num)
inherited
int Date::operator!= ( const Date date)
inherited
long Number::operator() ( )
inlineinherited

Definition at line 105 of file numbers.h.

String Date::operator() ( ) const
inherited
long Number::operator++ ( )
inherited
Date& Date::operator++ ( )
inherited
long Number::operator+= ( const long  value)
inherited
Date& Date::operator+= ( const long  val)
inherited
long Number::operator-- ( )
inherited
Date& Date::operator-- ( )
inherited
long Number::operator-= ( const long  value)
inherited
Date& Date::operator-= ( const long  val)
inherited
int Number::operator< ( const Number num)
inherited
int Date::operator< ( const Date date)
inherited
int Number::operator<= ( const Number num)
inherited
int Date::operator<= ( const Date date)
inherited
int Number::operator== ( const Number num)
inherited
int Date::operator== ( const Date date)
inherited
int Number::operator> ( const Number num)
inherited
int Date::operator> ( const Date date)
inherited
int Number::operator>= ( const Number num)
inherited
int Date::operator>= ( const Date date)
inherited
void Date::setDate ( const char *  str,
size_t  size = 0 
)
inherited
void Number::setValue ( long  value)
inherited
void Date::toJulian ( long  year,
long  month,
long  day 
)
protectedinherited
void DateNumber::update ( void  )
inlineprotectedvirtual

A method to use to "post" any changed values when shadowing a mixed object class.

This is used by DateNumber.

Reimplemented from Date.

Definition at line 318 of file numbers.h.

Field Documentation

char* Number::buffer
protectedinherited

Definition at line 88 of file numbers.h.

long Date::julian
protectedinherited

Definition at line 151 of file numbers.h.

unsigned Number::size
protectedinherited

Definition at line 89 of file numbers.h.


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