User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Misc - TimeCodeC
 

  PUBLIC
TimeCodeC::TimeCodeC(ByteT,ByteT,ByteT,ByteT)
TimeCodeC::TimeCodeC(ByteT *)
TimeCodeC::TimeCodeC(int,int,int,int)
TimeCodeC::TimeCodeC(const long int)
TimeCodeC::TimeCodeC(const char *)
TimeCodeC::TimeCodeC(void)
TimeCodeC::operator ==(const TimeCodeC &) const
TimeCodeC::operator !=(const TimeCodeC &)
TimeCodeC::operator <(const TimeCodeC &) const
TimeCodeC::operator >(const TimeCodeC &) const
TimeCodeC::operator >=(const TimeCodeC &) const
TimeCodeC::operator <=(const TimeCodeC &) const
TimeCodeC::operator +(const TimeCodeC &) const
TimeCodeC::operator -(const TimeCodeC &) const
TimeCodeC::operator +=(const TimeCodeC &)
TimeCodeC::operator +=(long int)
TimeCodeC::operator -=(const TimeCodeC &)
TimeCodeC::operator <<(ostream &,const TimeCodeC &)
TimeCodeC::operator >>(istream &,TimeCodeC &)
TimeCodeC::Hash(void) const
TimeCodeC::bcd(ByteT)
TimeCodeC::ToText(void) const
TimeCodeC::NumberOfFramesTo(const TimeCodeC &)
TimeCodeC::IsValid(void)
TimeCodeC::getFrameCount(void) const

   TimeCodeC   
 
Time code.
 
include "Ravl/TimeCode.hh"
Created:14/05/2002 
User Level:Normal
Library:RavlCore
In Scope:RavlN

Variables:
long int m_liFrame;
Absolute frame count of timecode

Methods:

Constructors
TimeCodeC(ByteT hr,ByteT min,ByteT sec,ByteT fr)
Construct timecode from 4 bytes

TimeCodeC(ByteT * in)
Construct timecode from byte array

TimeCodeC(int hr,int min,int sec,int fr)
Construct timecode from 4 ints

TimeCodeC(const long int nFrames)
Construct timecode from absolute frame count

TimeCodeC(const char * string)
Construct from a valid string representation

TimeCodeC()
Construct empty timecode

Operators

bool operator ==(const TimeCodeC & in) const
Checks for equals assignment

bool operator !=(const TimeCodeC & in)
Checks for not equals assignment

bool operator <(const TimeCodeC & in) const
Checks if timecode smaller than input timecode

bool operator >(const TimeCodeC & in) const
Checks if timecode is bigger than input

bool operator >=(const TimeCodeC & in) const
Checks if timecode is bigger or equal to input

bool operator <=(const TimeCodeC & in) const
Checks if timecode is smaller or equal to input

TimeCodeC operator +(const TimeCodeC & in) const
Adds timecodes

TimeCodeC operator -(const TimeCodeC & in) const
Subtracts timecodes

TimeCodeC & operator +=(const TimeCodeC & in)
Adds input timecode to this timecode

TimeCodeC & operator +=(long int frame)
Adds frame count to timecode

TimeCodeC & operator -=(const TimeCodeC & in)
Subtracts input timecode from this

ostream & operator <<(ostream & s,const TimeCodeC & out)
Output stream for timecode

istream & operator >>(istream & s,TimeCodeC & inds)
Input stream fot timecode

Member Functions
unsigned int Hash() const
the hash key

int bcd(ByteT in)
Routine to convert binary coded decimal to int

StringC ToText() const
Return a char representation of timecode

int NumberOfFramesTo(const TimeCodeC & in)
Count the number of frames to a timecode

bool IsValid()
Checks whether the timecode holds valid data

long int getFrameCount() const
Access frame count.


Maintainer:Kieron J Messer, Created: 14/05/2002, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002