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

clLevel Class Reference

Level server. More...

#include <Level.hh>

Collaboration diagram for clLevel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clLevel (int, int)
 ~clLevel ()
int Main (int, char **)

Private Member Functions

bool GetCfg ()
bool GetRequest ()
bool ConnectStream ()
bool Initialize ()
bool ReceiveData ()
bool Process ()
bool SendResult ()

Private Attributes

bool bRun
long lFilterSize
long lRawDataCount
long lRawBufSize
long lSampleCount
char cpStreamSocket [_POSIX_PATH_MAX+1]
GDT fResPeakLevel
stRawDataFirst sRawHdr
stLevelReq sRequest
stLevelRes sResult
clDSPAlloc RawBuf
clDSPAlloc DataBuf
clCfgFile CfgFile
clDSPOp DSP
clFilter Filter
clSockClie SClient
clSockOp SOpRequest
clSockOp SOpResult
clSockOp SOpRaw
clLevelMsg Msg

Detailed Description

Level server.

Definition at line 46 of file Level.hh.


Constructor & Destructor Documentation

clLevel::clLevel int  ,
int 
 

Definition at line 254 of file Level.cc.

References bRun, clSockOp::SetHandle(), SOpRequest, and SOpResult.

clLevel::~clLevel  ) 
 

Definition at line 262 of file Level.cc.


Member Function Documentation

bool clLevel::GetCfg  )  [private]
 

Definition at line 82 of file Level.cc.

References CfgFile, cpStreamSocket, clCfgFile::GetInt(), clCfgFile::GetStr(), LEVEL_CFGFILE, LEVEL_DEF_FILTER_SIZE, lFilterSize, SD_CFGFILE, and clCfgFile::SetFileName().

bool clLevel::GetRequest  )  [private]
 

Definition at line 93 of file Level.cc.

References clLevelMsg::GetRequest(), GLOBAL_HEADER_LEN, LEVEL_1STREQ_TIMEOUT, Msg, clSockOp::ReadN(), clSockOp::ReadSelect(), SOpRequest, and sRequest.

bool clLevel::ConnectStream  )  [private]
 

Definition at line 105 of file Level.cc.

References clSockClie::Connect(), cpStreamSocket, _stLevelReq::iChannel, _stRawDataReq::iChannel, LEVEL_RAW1ST_TIMEOUT, clSockOp::ReadN(), clSockOp::ReadSelect(), SClient, clSockOp::SetHandle(), SOpRaw, sRawHdr, sRequest, and clSockOp::WriteN().

bool clLevel::Initialize  )  [private]
 

Definition at line 123 of file Level.cc.

References bDebug, DataBuf, _stRawDataFirst::dSampleRate, _stLevelReq::fHighFrequency, Filter, _stLevelRes::fIntegrationTime, _stLevelReq::fIntegrationTime, _stLevelReq::fLowFrequency, GDT, _stLevelReq::iAlgorithm, lFilterSize, lRawBufSize, lRawDataCount, lSampleCount, MSG_LEVEL_ALG_MEAN, MSG_LEVEL_ALG_MEDIAN, MSG_LEVEL_ALG_PEAK, MSG_LEVEL_ALG_RMS, MSG_LEVEL_ALG_STDDEV, RawBuf, sRawHdr, sRequest, and sResult.

bool clLevel::ReceiveData  )  [private]
 

Definition at line 187 of file Level.cc.

References DSP, Filter, fResPeakLevel, GDT, LEVEL_TIMEOUT, lRawBufSize, lRawDataCount, RawBuf, clSockOp::ReadN(), clSockOp::ReadSelect(), and SOpRaw.

bool clLevel::Process  )  [private]
 

Definition at line 206 of file Level.cc.

References DataBuf, DSP, _stLevelRes::fResult, GDT, _stLevelReq::iAlgorithm, lSampleCount, MSG_LEVEL_ALG_MEAN, MSG_LEVEL_ALG_MEDIAN, MSG_LEVEL_ALG_PEAK, MSG_LEVEL_ALG_RMS, MSG_LEVEL_ALG_STDDEV, sRequest, sResult, and _stLevelRes::sTimeStamp.

bool clLevel::SendResult  )  [private]
 

Definition at line 242 of file Level.cc.

References _stLevelRes::fPeakLevel, GLOBAL_HEADER_LEN, Msg, clLevelMsg::SetResult(), SOpResult, sResult, and clSockOp::WriteN().

int clLevel::Main int  ,
char ** 
 

Referenced by main().


Member Data Documentation

bool clLevel::bRun [private]
 

Definition at line 48 of file Level.hh.

Referenced by clLevel().

long clLevel::lFilterSize [private]
 

Definition at line 49 of file Level.hh.

Referenced by GetCfg(), and Initialize().

long clLevel::lRawDataCount [private]
 

Definition at line 50 of file Level.hh.

Referenced by Initialize(), and ReceiveData().

long clLevel::lRawBufSize [private]
 

Definition at line 51 of file Level.hh.

Referenced by Initialize(), and ReceiveData().

long clLevel::lSampleCount [private]
 

Definition at line 52 of file Level.hh.

Referenced by Initialize(), and Process().

char clLevel::cpStreamSocket[_POSIX_PATH_MAX + 1] [private]
 

Definition at line 53 of file Level.hh.

Referenced by ConnectStream(), and GetCfg().

GDT clLevel::fResPeakLevel [private]
 

Definition at line 54 of file Level.hh.

Referenced by ReceiveData().

stRawDataFirst clLevel::sRawHdr [private]
 

Definition at line 55 of file Level.hh.

Referenced by ConnectStream(), and Initialize().

stLevelReq clLevel::sRequest [private]
 

Definition at line 56 of file Level.hh.

Referenced by ConnectStream(), GetRequest(), Initialize(), and Process().

stLevelRes clLevel::sResult [private]
 

Definition at line 57 of file Level.hh.

Referenced by Initialize(), Process(), and SendResult().

clDSPAlloc clLevel::RawBuf [private]
 

Definition at line 58 of file Level.hh.

Referenced by Initialize(), and ReceiveData().

clDSPAlloc clLevel::DataBuf [private]
 

Definition at line 59 of file Level.hh.

Referenced by Initialize(), and Process().

clCfgFile clLevel::CfgFile [private]
 

Definition at line 60 of file Level.hh.

Referenced by GetCfg().

clDSPOp clLevel::DSP [private]
 

Definition at line 61 of file Level.hh.

Referenced by Process(), and ReceiveData().

clFilter clLevel::Filter [private]
 

Definition at line 62 of file Level.hh.

Referenced by Initialize(), and ReceiveData().

clSockClie clLevel::SClient [private]
 

Definition at line 63 of file Level.hh.

Referenced by ConnectStream().

clSockOp clLevel::SOpRequest [private]
 

Definition at line 64 of file Level.hh.

Referenced by clLevel(), and GetRequest().

clSockOp clLevel::SOpResult [private]
 

Definition at line 65 of file Level.hh.

Referenced by clLevel(), and SendResult().

clSockOp clLevel::SOpRaw [private]
 

Definition at line 66 of file Level.hh.

Referenced by ConnectStream(), and ReceiveData().

clLevelMsg clLevel::Msg [private]
 

Definition at line 67 of file Level.hh.

Referenced by GetRequest(), and SendResult().


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