ost::ttystream(3) Library Functions Manual ost::ttystream(3)NAME
ost::ttystream -
A more natural C++ 'ttystream' class for use by non-threaded applications.
SYNOPSIS
#include <serial.h>
Inherits ost::TTYStream.
Public Member Functions
ttystream ()
Construct an unopened 'ttystream' object.
ttystream (const char *name)
Construct and 'open' a tty stream object.
void open (const char *name)
Open method for a tty stream.
void close (void)
Close method for a tty stream.
bool operator! ()
Test to see if stream is opened.
Additional Inherited Members
Detailed Description
A more natural C++ 'ttystream' class for use by non-threaded applications.
This class behaves a lot more like fstream and similar classes.
Author:
David Sugar dyfet@ostel.com C++ 'fstream' style ttystream class.
Constructor & Destructor Documentation
ost::ttystream::ttystream ()
Construct an unopened 'ttystream' object.
ost::ttystream::ttystream (const char *name)
Construct and 'open' a tty stream object. A filename in the form 'device:options[,options]' may be used to pass device options as part of
the open.
Parameters:
name of file and serial options.
Member Function Documentation
void ost::ttystream::close (void)
Close method for a tty stream.
Reimplemented from ost::Serial.
void ost::ttystream::open (const char *name)
Open method for a tty stream. Parameters:
name filename to open.
Reimplemented from ost::Serial.
bool ost::ttystream::operator! (void) [inline]
Test to see if stream is opened.
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::ttystream(3)
Check Out this Related Man Page
ost::Datetime(3) Library Functions Manual ost::Datetime(3)NAME
ost::Datetime -
The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time.
SYNOPSIS
#include <numbers.h>
Inherits ost::Date, and ost::Time.
Public Member Functions
Datetime (time_t tm)
Datetime (tm *dt)
Datetime (const char *str, size_t size=0)
Datetime (int year, unsigned month, unsigned day, int hour, int minute, int second)
Datetime ()
virtual ~Datetime ()
char * getDatetime (char *buffer) const
time_t getDatetime (void) const
bool isValid (void) const
Datetime & operator= (const Datetime datetime)
Datetime & operator+= (const Datetime &datetime)
Datetime & operator-= (const Datetime &datetime)
Datetime & operator+= (const Time &time)
Datetime & operator-= (const Time &time)
int operator== (const Datetime &)
int operator!= (const Datetime &)
int operator< (const Datetime &)
int operator<= (const Datetime &)
int operator> (const Datetime &)
int operator>= (const Datetime &)
bool operator! () const
String strftime (const char *format) const
Additional Inherited Members
Detailed Description
The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time.
This is then manipulated in several forms and may be exported as needed.
Author:
Marcelo Dalmas mad@brasmap.com.br Integer based time class.
Constructor & Destructor Documentation
ost::Datetime::Datetime (time_ttm)
ost::Datetime::Datetime (tm *dt)
ost::Datetime::Datetime (const char *str, size_tsize = 0)
ost::Datetime::Datetime (intyear, unsignedmonth, unsignedday, inthour, intminute, intsecond)
ost::Datetime::Datetime ()
virtual ost::Datetime::~Datetime () [virtual]
Member Function Documentation
char* ost::Datetime::getDatetime (char *buffer) const
time_t ost::Datetime::getDatetime (void) const
bool ost::Datetime::isValid (void) const
Reimplemented from ost::Date.
bool ost::Datetime::operator! () const
Reimplemented from ost::Date.
int ost::Datetime::operator!= (const Datetime &)
Datetime& ost::Datetime::operator+= (const Datetime &datetime)
Datetime& ost::Datetime::operator+= (const Time &time)
Datetime& ost::Datetime::operator-= (const Datetime &datetime)
Datetime& ost::Datetime::operator-= (const Time &time)
int ost::Datetime::operator< (const Datetime &)
int ost::Datetime::operator<= (const Datetime &)
Datetime& ost::Datetime::operator= (const Datetimedatetime)
int ost::Datetime::operator== (const Datetime &)
int ost::Datetime::operator> (const Datetime &)
int ost::Datetime::operator>= (const Datetime &)
String ost::Datetime::strftime (const char *format) const
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::Datetime(3)