Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

clFileSrv Class Reference

Input server for playback of previously recorded data. More...

#include <FileSrv.hh>

Collaboration diagram for clFileSrv:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clFileSrv ()
 ~clFileSrv ()
int Main (int *, char ***)
gboolean OnDelete (GtkWidget *, GdkEvent *, gpointer)
void OnFileSelectOkClick (GtkButton *, gpointer)
void OnFileSelectCancelClick (GtkButton *, gpointer)
void OnBrowseClick (GtkButton *, gpointer)
void OnPlayStopToggle (GtkToggleButton *, gpointer)
void OnPositionChange (GtkAdjustment *, gpointer)
void * ReaderThread (void *)
void * ServerThread (void *)
void * ServeClientThread (void *)

Private Member Functions

bool Build ()
bool BuildTable1 ()
bool BuildTable2 ()
bool ConnectSignals ()
double GetTime ()
void ShortSleep (long)

Private Attributes

volatile bool bRun
timeval sTimeStamp
SNDFILE * sndfileFile
SF_INFO sFileInfo
clAlloc AudioBlock
clCondition CndReady
clMutex MtxAudio
clReBufferT< double > StreamBuf
long lEpoch
clAlloc ConvBuf
clCfgFile Cfg
GtkWidget * gwWindow
GtkWidget * gwVBox
GtkWidget * gwFileSelect
GtkWidget * gwTable1
GtkWidget * gwLFile
GtkWidget * gwEFile
GtkWidget * gwBBrowse
GtkObject * gaPosition
GtkWidget * gwTable2
GtkWidget * gwTBPlayStop
GtkWidget * gwLPosition
GtkWidget * gwHSPosition

Detailed Description

Input server for playback of previously recorded data.

Definition at line 57 of file FileSrv.hh.


Constructor & Destructor Documentation

clFileSrv::clFileSrv  ) 
 

Definition at line 349 of file FileSrv.cc.

References bRun, lEpoch, and sndfileFile.

clFileSrv::~clFileSrv  ) 
 

Definition at line 360 of file FileSrv.cc.


Member Function Documentation

bool clFileSrv::Build  )  [private]
 

Definition at line 130 of file FileSrv.cc.

References BuildTable1(), BuildTable2(), ConnectSignals(), cpFileSelectTxt, cpWindowTxt, FS_WSPACING, gwFileSelect, gwVBox, and gwWindow.

Referenced by Main().

bool clFileSrv::BuildTable1  )  [private]
 

Definition at line 154 of file FileSrv.cc.

References cpBrowseTxt, cpFileTxt, FS_WSPACING, gwBBrowse, gwEFile, gwLFile, gwTable1, and gwVBox.

Referenced by Build().

bool clFileSrv::BuildTable2  )  [private]
 

Definition at line 193 of file FileSrv.cc.

References cpPlayStopTxt, cpPositionTxt, FS_WSPACING, gaPosition, gwHSPosition, gwLPosition, gwTable2, gwTBPlayStop, and gwVBox.

Referenced by Build().

bool clFileSrv::ConnectSignals  )  [private]
 

Definition at line 236 of file FileSrv.cc.

References gwBBrowse, gwFileSelect, gwTBPlayStop, gwWindow, WrapOnBrowseClick(), WrapOnDelete(), WrapOnFileSelectCancelClick(), WrapOnFileSelectOkClick(), and WrapOnPlayStopToggle().

Referenced by Build().

double clFileSrv::GetTime  )  [private]
 

Definition at line 263 of file FileSrv.cc.

References lEpoch.

Referenced by ReaderThread().

void clFileSrv::ShortSleep long   )  [private]
 

Definition at line 283 of file FileSrv.cc.

Referenced by ReaderThread().

int clFileSrv::Main int *  ,
char *** 
 

Definition at line 365 of file FileSrv.cc.

References AudioBlock, Build(), Cfg, cpWindowTxt, FileSrvThreads(), FS_CFGFILE, FS_DEFAULT_PORT, FS_FRAG_SIZE_DEFAULT, FS_VER_MAJ, FS_VER_MIN, FS_VER_PL, GDT, clCfgFile::GetInt(), ReaderThread(), ServerThread(), and clCfgFile::SetFileName().

Referenced by main().

gboolean clFileSrv::OnDelete GtkWidget *  ,
GdkEvent *  ,
gpointer 
 

Definition at line 406 of file FileSrv.cc.

References bRun.

Referenced by WrapOnDelete().

void clFileSrv::OnFileSelectOkClick GtkButton *  ,
gpointer 
 

Definition at line 415 of file FileSrv.cc.

References gwEFile, and gwFileSelect.

Referenced by WrapOnFileSelectOkClick().

void clFileSrv::OnFileSelectCancelClick GtkButton *  ,
gpointer 
 

Definition at line 432 of file FileSrv.cc.

References gwFileSelect.

Referenced by WrapOnFileSelectCancelClick().

void clFileSrv::OnBrowseClick GtkButton *  ,
gpointer 
 

Definition at line 438 of file FileSrv.cc.

References gwFileSelect.

Referenced by WrapOnBrowseClick().

void clFileSrv::OnPlayStopToggle GtkToggleButton *  ,
gpointer 
 

Definition at line 444 of file FileSrv.cc.

References gaPosition, gwEFile, MtxAudio, sFileInfo, and sndfileFile.

Referenced by WrapOnPlayStopToggle().

void clFileSrv::OnPositionChange GtkAdjustment *  ,
gpointer 
 

Definition at line 504 of file FileSrv.cc.

Referenced by WrapOnPositionChange().

void * clFileSrv::ReaderThread void *   ) 
 

Definition at line 509 of file FileSrv.cc.

References AudioBlock, bRun, CndReady, FileSrvThreads(), FS_INTHREAD_PRIORITY, gaPosition, GDT, GetTime(), MtxAudio, sFileInfo, ShortSleep(), sndfileFile, sTimeStamp, and StreamBuf.

Referenced by Main().

void * clFileSrv::ServerThread void *   ) 
 

Definition at line 608 of file FileSrv.cc.

References clSockServ::Bind(), bRun, FileSrvThreads(), FS_ACCEPT_TIMEOUT, ServeClientThread(), and clSockServ::WaitForConnect().

Referenced by Main().

void * clFileSrv::ServeClientThread void *   ) 
 

Definition at line 632 of file FileSrv.cc.

References AudioBlock, bRun, CndReady, clSockOp::DisableNagle(), FileSrvThreads(), FS_OUTTHREAD_PRIORITY, GDT, GLOBAL_HEADER_LEN, MSG_SOUND_COMPRESS_NONE, MtxAudio, clSoundMsg::SetData(), clSoundMsg::SetStart(), clSockOp::SetTypeOfService(), sFileInfo, SOp, sTimeStamp, and clSockOp::WriteN().

Referenced by ServerThread().


Member Data Documentation

volatile bool clFileSrv::bRun [private]
 

Definition at line 60 of file FileSrv.hh.

Referenced by clFileSrv(), OnDelete(), ReaderThread(), ServeClientThread(), and ServerThread().

struct timeval clFileSrv::sTimeStamp [private]
 

Definition at line 61 of file FileSrv.hh.

Referenced by ReaderThread(), and ServeClientThread().

SNDFILE* clFileSrv::sndfileFile [private]
 

Definition at line 62 of file FileSrv.hh.

Referenced by clFileSrv(), OnPlayStopToggle(), and ReaderThread().

SF_INFO clFileSrv::sFileInfo [private]
 

Definition at line 63 of file FileSrv.hh.

Referenced by OnPlayStopToggle(), ReaderThread(), and ServeClientThread().

clAlloc clFileSrv::AudioBlock [private]
 

Definition at line 67 of file FileSrv.hh.

Referenced by Main(), ReaderThread(), and ServeClientThread().

clCondition clFileSrv::CndReady [private]
 

Definition at line 68 of file FileSrv.hh.

Referenced by ReaderThread(), and ServeClientThread().

clMutex clFileSrv::MtxAudio [private]
 

Definition at line 69 of file FileSrv.hh.

Referenced by OnPlayStopToggle(), ReaderThread(), and ServeClientThread().

clReBufferT<double> clFileSrv::StreamBuf [private]
 

Definition at line 70 of file FileSrv.hh.

Referenced by ReaderThread().

long clFileSrv::lEpoch [private]
 

Definition at line 72 of file FileSrv.hh.

Referenced by clFileSrv(), and GetTime().

clAlloc clFileSrv::ConvBuf [private]
 

Definition at line 73 of file FileSrv.hh.

clCfgFile clFileSrv::Cfg [private]
 

Definition at line 74 of file FileSrv.hh.

Referenced by Main().

GtkWidget* clFileSrv::gwWindow [private]
 

Definition at line 76 of file FileSrv.hh.

Referenced by Build(), and ConnectSignals().

GtkWidget* clFileSrv::gwVBox [private]
 

Definition at line 77 of file FileSrv.hh.

Referenced by Build(), BuildTable1(), and BuildTable2().

GtkWidget* clFileSrv::gwFileSelect [private]
 

Definition at line 78 of file FileSrv.hh.

Referenced by Build(), ConnectSignals(), OnBrowseClick(), OnFileSelectCancelClick(), and OnFileSelectOkClick().

GtkWidget* clFileSrv::gwTable1 [private]
 

Definition at line 80 of file FileSrv.hh.

Referenced by BuildTable1().

GtkWidget* clFileSrv::gwLFile [private]
 

Definition at line 81 of file FileSrv.hh.

Referenced by BuildTable1().

GtkWidget* clFileSrv::gwEFile [private]
 

Definition at line 82 of file FileSrv.hh.

Referenced by BuildTable1(), OnFileSelectOkClick(), and OnPlayStopToggle().

GtkWidget* clFileSrv::gwBBrowse [private]
 

Definition at line 83 of file FileSrv.hh.

Referenced by BuildTable1(), and ConnectSignals().

GtkObject* clFileSrv::gaPosition [private]
 

Definition at line 85 of file FileSrv.hh.

Referenced by BuildTable2(), OnPlayStopToggle(), and ReaderThread().

GtkWidget* clFileSrv::gwTable2 [private]
 

Definition at line 86 of file FileSrv.hh.

Referenced by BuildTable2().

GtkWidget* clFileSrv::gwTBPlayStop [private]
 

Definition at line 87 of file FileSrv.hh.

Referenced by BuildTable2(), and ConnectSignals().

GtkWidget* clFileSrv::gwLPosition [private]
 

Definition at line 88 of file FileSrv.hh.

Referenced by BuildTable2().

GtkWidget* clFileSrv::gwHSPosition [private]
 

Definition at line 89 of file FileSrv.hh.

Referenced by BuildTable2().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:17 2003 for HASAS by doxygen 1.3.3