cmlabs::TimeSeries Class Reference

#include <TimeSeries.h>

Inheritance diagram for cmlabs::TimeSeries:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::TimeSeries:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TimeSeries ()
 TimeSeries (const TimeSeries &ts)
 TimeSeries (const JString &xml)
 TimeSeries (XMLNode *node)
virtual ~TimeSeries ()
const TimeSeriesoperator= (const TimeSeries &profile)
Objectclone () const
virtual unsigned long getPayloadSize () const
 Get total size of payload.
bool contains (const JTime &time)
int getCount ()
Objectget (int pos)
Objectget (const JTime &time)
 Will only return the first if more with same time exist.
ObjectgetFirstAfter (const JTime &time)
ObjectgetLastBefore (const JTime &time)
ObjectCollectiongetAllBetween (const JTime &t1, const JTime &t2)
ObjectCollectiongetAllBefore (const JTime &time)
ObjectCollectiongetAllAfter (const JTime &time)
bool put (const JTime &time, Object *obj)
bool remove (const JTime &time)
bool removeOldest ()
bool removeNewest ()
bool removeAllBetween (const JTime &t1, const JTime &t2)
bool removeAllBefore (const JTime &time)
bool removeAllAfter (const JTime &time)
bool removeAll ()
JTime getTime (int pos)
JTime getFirstTime ()
JTime getLastTime ()
JTime getNextTime ()
JTime getPreviousTime ()
ObjectgetOldest ()
ObjectgetNewest ()
long getBinarySize (int chunk)
 Get the size of binary data chunk, -1 for all chunks.
int getBinaryChunkCount ()
 Get the number of data chunks.
long toBinaryBuffer (int chunk, char *buffer, int maxlen)
 Write binary data to buffer at chunk number 'chunk'.
bool fromBinaryBuffer (int chunk, char *buffer, long len)
 Set the data after separate reception.
JString print ()
bool unitTest ()

Protected Attributes

SortedCollection times
ObjectDictionary dict


Detailed Description

Definition at line 36 of file TimeSeries.h.


Constructor & Destructor Documentation

cmlabs::TimeSeries::TimeSeries (  ) 

Definition at line 33 of file TimeSeries.cpp.

cmlabs::TimeSeries::TimeSeries ( const TimeSeries ts  ) 

Definition at line 42 of file TimeSeries.cpp.

cmlabs::TimeSeries::TimeSeries ( const JString xml  ) 

Definition at line 53 of file TimeSeries.cpp.

cmlabs::TimeSeries::TimeSeries ( XMLNode node  ) 

Definition at line 57 of file TimeSeries.cpp.

cmlabs::TimeSeries::~TimeSeries (  )  [virtual]

Definition at line 37 of file TimeSeries.cpp.


Member Function Documentation

const TimeSeries & cmlabs::TimeSeries::operator= ( const TimeSeries profile  ) 

Definition at line 47 of file TimeSeries.cpp.

Object * cmlabs::TimeSeries::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 61 of file TimeSeries.cpp.

unsigned long cmlabs::TimeSeries::getPayloadSize (  )  const [virtual]

Get total size of payload.

Reimplemented from cmlabs::Object.

Definition at line 75 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::contains ( const JTime time  ) 

Definition at line 85 of file TimeSeries.cpp.

int cmlabs::TimeSeries::getCount (  ) 

Definition at line 80 of file TimeSeries.cpp.

Object * cmlabs::TimeSeries::get ( int  pos  ) 

Definition at line 102 of file TimeSeries.cpp.

Object * cmlabs::TimeSeries::get ( const JTime time  ) 

Will only return the first if more with same time exist.

Definition at line 106 of file TimeSeries.cpp.

Object * cmlabs::TimeSeries::getFirstAfter ( const JTime time  ) 

Definition at line 119 of file TimeSeries.cpp.

Object * cmlabs::TimeSeries::getLastBefore ( const JTime time  ) 

Definition at line 123 of file TimeSeries.cpp.

ObjectCollection * cmlabs::TimeSeries::getAllBetween ( const JTime t1,
const JTime t2 
)

Definition at line 207 of file TimeSeries.cpp.

ObjectCollection * cmlabs::TimeSeries::getAllBefore ( const JTime time  ) 

Definition at line 223 of file TimeSeries.cpp.

ObjectCollection * cmlabs::TimeSeries::getAllAfter ( const JTime time  ) 

Definition at line 236 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::put ( const JTime time,
Object obj 
)

Definition at line 128 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::remove ( const JTime time  ) 

Definition at line 148 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::removeOldest (  ) 

Definition at line 158 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::removeNewest (  ) 

Definition at line 169 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::removeAllBetween ( const JTime t1,
const JTime t2 
)

Definition at line 180 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::removeAllBefore ( const JTime time  ) 

Definition at line 189 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::removeAllAfter ( const JTime time  ) 

Definition at line 198 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::removeAll (  ) 

Definition at line 249 of file TimeSeries.cpp.

JTime cmlabs::TimeSeries::getTime ( int  pos  ) 

Definition at line 91 of file TimeSeries.cpp.

JTime cmlabs::TimeSeries::getFirstTime (  ) 

Definition at line 259 of file TimeSeries.cpp.

JTime cmlabs::TimeSeries::getLastTime (  ) 

Definition at line 270 of file TimeSeries.cpp.

JTime cmlabs::TimeSeries::getNextTime (  ) 

Definition at line 281 of file TimeSeries.cpp.

JTime cmlabs::TimeSeries::getPreviousTime (  ) 

Definition at line 292 of file TimeSeries.cpp.

Object * cmlabs::TimeSeries::getOldest (  ) 

Definition at line 111 of file TimeSeries.cpp.

Object * cmlabs::TimeSeries::getNewest (  ) 

Definition at line 115 of file TimeSeries.cpp.

long cmlabs::TimeSeries::getBinarySize ( int  chunk  )  [virtual]

Get the size of binary data chunk, -1 for all chunks.

Get the size of any binary data.

Reimplemented from cmlabs::Object.

Definition at line 339 of file TimeSeries.cpp.

int cmlabs::TimeSeries::getBinaryChunkCount (  )  [virtual]

Get the number of data chunks.

Reimplemented from cmlabs::Object.

Definition at line 344 of file TimeSeries.cpp.

long cmlabs::TimeSeries::toBinaryBuffer ( int  chunk,
char *  buffer,
int  maxlen 
) [virtual]

Write binary data to buffer at chunk number 'chunk'.

Get a pointer to the binary data at chunk number 'chunk'.

Reimplemented from cmlabs::Object.

Definition at line 349 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::fromBinaryBuffer ( int  chunk,
char *  buffer,
long  len 
) [virtual]

Set the data after separate reception.

Reimplemented from cmlabs::Object.

Definition at line 354 of file TimeSeries.cpp.

JString cmlabs::TimeSeries::print (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 307 of file TimeSeries.cpp.

bool cmlabs::TimeSeries::unitTest (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 362 of file TimeSeries.cpp.


Member Data Documentation

Definition at line 97 of file TimeSeries.h.

Definition at line 98 of file TimeSeries.h.


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

Generated on Tue Jul 7 16:24:24 2009 for CoreLibrary by  doxygen 1.5.6