cmlabs::MediaStream Class Reference

#include <MediaStream.h>

Inheritance diagram for cmlabs::MediaStream:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MediaStream (const JString &streamname, long hardMaxSize=-1, long softMaxSize=-1, long maxCount=-1, long maxBackupCount=-1)
virtual ~MediaStream ()
Objectclone () const
JString print ()
bool handleMultipleWriters (bool allow)
bool addSample (DataSample *sample)
bool addSamples (ObjectCollection *samples, bool deleteCol=true)
bool deleteSample (DataSample *sample)
bool deleteSample (int pos)
bool deleteSampleAt (const JTime &time)
bool deleteSamplesOlderThan (const JTime &time)
bool deleteSamplesNewerThan (const JTime &time)
bool deleteSamplesBetween (const JTime &fromTime, const JTime &toTime)
long getTotalDataSize ()
long getTotalDataMemUse ()
int getCount ()
double getInputDataRate ()
double getOutputDataRate ()
double getTotalDataEverHandled ()
long getTotalCountEverHandled ()
JTime getOldestSampleTime ()
JTime getNewestSampleTime ()
ObjectCollectiongetDataSampleList ()
ObjectCollectiongetTimestampList ()
DataSamplegetOldestSample ()
DataSamplegetNewestSample ()
DataSamplegetSample (const JString &id)
DataSamplegetSampleAt (const JTime &time)
DataSamplegetFirstSampleAfter (const JString &id)
DataSamplegetFirstSampleAfter (const JTime &time)
DataSamplegetLastSampleBefore (const JTime &time)
ObjectCollectiongetSamplesBetween (const JTime &fromTime, const JTime &toTime)
DataSamplewaitForFirstSampleAfter (const JTime &time, long ms)
DataSamplewaitForLastSampleAfter (const JTime &time, long ms)
DataSamplewaitForFirstSampleAfter (const JString &id, long ms)
DataSamplewaitForLastSampleAfter (const JString &id, long ms)
bool createChannel (const JString &name, const JString &fieldname)
bool destroyChannel (const JString &name)
ObjectCollectionsearchChannel (const JString &name, double val1, double val2)
InfoItemgetInfo ()
bool doMaintenance ()

Protected Member Functions

bool addChannelSample (DataSample *sample)
bool removeChannelSample (DataSample *sample)

Protected Attributes

ObjectTable dataSamples
JTime lastAccessTime
ObjectCollection deletedSamples
Dictionary channelNames
ObjectDictionary channels
JSemaphore newDataSem
JMutex accessMutex
JString name
long softMax
long hardMax
long maxCount
long maxBackupCount
long currentSize
bool allowMultipleWriters
double bytesEverHandled
long countEverHandled
ObjectTable outputData


Detailed Description

Definition at line 42 of file MediaStream.h.


Constructor & Destructor Documentation

cmlabs::MediaStream::MediaStream ( const JString streamname,
long  hardMaxSize = -1,
long  softMaxSize = -1,
long  maxCount = -1,
long  maxBackupCount = -1 
)

Definition at line 29 of file MediaStream.cpp.

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

Definition at line 58 of file MediaStream.cpp.


Member Function Documentation

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

Implements cmlabs::Object.

Definition at line 63 of file MediaStream.cpp.

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

Reimplemented from cmlabs::Object.

Definition at line 67 of file MediaStream.cpp.

bool cmlabs::MediaStream::handleMultipleWriters ( bool  allow  ) 

Definition at line 80 of file MediaStream.cpp.

bool cmlabs::MediaStream::addSample ( DataSample sample  ) 

Definition at line 123 of file MediaStream.cpp.

bool cmlabs::MediaStream::addSamples ( ObjectCollection samples,
bool  deleteCol = true 
)

Definition at line 167 of file MediaStream.cpp.

bool cmlabs::MediaStream::deleteSample ( DataSample sample  ) 

Definition at line 220 of file MediaStream.cpp.

bool cmlabs::MediaStream::deleteSample ( int  pos  ) 

Definition at line 241 of file MediaStream.cpp.

bool cmlabs::MediaStream::deleteSampleAt ( const JTime time  ) 

Definition at line 330 of file MediaStream.cpp.

bool cmlabs::MediaStream::deleteSamplesOlderThan ( const JTime time  ) 

Definition at line 353 of file MediaStream.cpp.

bool cmlabs::MediaStream::deleteSamplesNewerThan ( const JTime time  ) 

Definition at line 369 of file MediaStream.cpp.

bool cmlabs::MediaStream::deleteSamplesBetween ( const JTime fromTime,
const JTime toTime 
)

Definition at line 385 of file MediaStream.cpp.

long cmlabs::MediaStream::getTotalDataSize (  ) 

Definition at line 406 of file MediaStream.cpp.

long cmlabs::MediaStream::getTotalDataMemUse (  ) 

Definition at line 440 of file MediaStream.cpp.

int cmlabs::MediaStream::getCount (  ) 

Definition at line 457 of file MediaStream.cpp.

double cmlabs::MediaStream::getInputDataRate (  ) 

Definition at line 259 of file MediaStream.cpp.

double cmlabs::MediaStream::getOutputDataRate (  ) 

Definition at line 301 of file MediaStream.cpp.

double cmlabs::MediaStream::getTotalDataEverHandled (  ) 

Definition at line 251 of file MediaStream.cpp.

long cmlabs::MediaStream::getTotalCountEverHandled (  ) 

Definition at line 255 of file MediaStream.cpp.

JTime cmlabs::MediaStream::getOldestSampleTime (  ) 

Definition at line 493 of file MediaStream.cpp.

JTime cmlabs::MediaStream::getNewestSampleTime (  ) 

Definition at line 509 of file MediaStream.cpp.

ObjectCollection * cmlabs::MediaStream::getDataSampleList (  ) 

Definition at line 461 of file MediaStream.cpp.

ObjectCollection * cmlabs::MediaStream::getTimestampList (  ) 

Definition at line 477 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::getOldestSample (  ) 

Definition at line 525 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::getNewestSample (  ) 

Definition at line 541 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::getSample ( const JString id  ) 

Definition at line 558 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::getSampleAt ( const JTime time  ) 

Definition at line 581 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::getFirstSampleAfter ( const JString id  ) 

Definition at line 600 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::getFirstSampleAfter ( const JTime time  ) 

Definition at line 624 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::getLastSampleBefore ( const JTime time  ) 

Definition at line 641 of file MediaStream.cpp.

ObjectCollection * cmlabs::MediaStream::getSamplesBetween ( const JTime fromTime,
const JTime toTime 
)

Definition at line 658 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::waitForFirstSampleAfter ( const JTime time,
long  ms 
)

Definition at line 691 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::waitForLastSampleAfter ( const JTime time,
long  ms 
)

Definition at line 712 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::waitForFirstSampleAfter ( const JString id,
long  ms 
)

Definition at line 746 of file MediaStream.cpp.

DataSample * cmlabs::MediaStream::waitForLastSampleAfter ( const JString id,
long  ms 
)

Definition at line 765 of file MediaStream.cpp.

bool cmlabs::MediaStream::createChannel ( const JString name,
const JString fieldname 
)

Definition at line 860 of file MediaStream.cpp.

bool cmlabs::MediaStream::destroyChannel ( const JString name  ) 

Definition at line 869 of file MediaStream.cpp.

ObjectCollection * cmlabs::MediaStream::searchChannel ( const JString name,
double  val1,
double  val2 
)

Definition at line 877 of file MediaStream.cpp.

InfoItem * cmlabs::MediaStream::getInfo (  ) 

Definition at line 85 of file MediaStream.cpp.

bool cmlabs::MediaStream::doMaintenance (  ) 

Definition at line 787 of file MediaStream.cpp.

bool cmlabs::MediaStream::addChannelSample ( DataSample sample  )  [protected]

Definition at line 901 of file MediaStream.cpp.

bool cmlabs::MediaStream::removeChannelSample ( DataSample sample  )  [protected]

Definition at line 924 of file MediaStream.cpp.


Member Data Documentation

Definition at line 107 of file MediaStream.h.

Definition at line 108 of file MediaStream.h.

Definition at line 109 of file MediaStream.h.

Definition at line 111 of file MediaStream.h.

Definition at line 112 of file MediaStream.h.

Definition at line 114 of file MediaStream.h.

Definition at line 115 of file MediaStream.h.

Definition at line 117 of file MediaStream.h.

long cmlabs::MediaStream::softMax [protected]

Definition at line 118 of file MediaStream.h.

long cmlabs::MediaStream::hardMax [protected]

Definition at line 119 of file MediaStream.h.

Definition at line 120 of file MediaStream.h.

Definition at line 121 of file MediaStream.h.

Definition at line 122 of file MediaStream.h.

Definition at line 124 of file MediaStream.h.

Definition at line 125 of file MediaStream.h.

Definition at line 126 of file MediaStream.h.

Definition at line 127 of file MediaStream.h.


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

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