Instrument Neutral Distributed Interface INDI 2.2.5
DvrInfo Class Referenceabstract

#include <DvrInfo.hpp>

Inheritance diagram for DvrInfo:
MsgQueue Collectable LocalDvrInfo RemoteDvrInfo

Public Member Functions

Property * findSDevice (const std::string &dev, const std::string &name) const
 DvrInfo (bool useSharedBuffer)
virtual ~DvrInfo ()
bool isHandlingDevice (const std::string &dev) const
virtual void start ()=0
void close () override
virtual DvrInfo * clone () const =0
void log (const std::string &log) const override
virtual const std::string remoteServerUid () const =0
bool acceptSharedBuffers () const override
Public Member Functions inherited from MsgQueue
virtual ~MsgQueue ()
void pushMsg (Msg *msg)
unsigned long msgQSize () const
SerializedMsg * headMsg () const
void consumeHeadMsg ()
void clearMsgQueue ()
void messageMayHaveProgressed (const SerializedMsg *msg)
void setFds (int rFd, int wFd)

Static Public Member Functions

static void q2RDrivers (const std::string &dev, Msg *mp, XMLEle *root)
static void q2SDrivers (DvrInfo *me, int isblob, const std::string &dev, const std::string &name, Msg *mp, XMLEle *root)

Public Attributes

std::string name
std::set< std::string > dev
std::list< Property * > sprops
int restarts
bool restart = true

Static Public Attributes

static ConcurrentSet< DvrInfo > drivers

Protected Member Functions

void onMessage (XMLEle *root, std::list< int > &sharedBuffers) override
void closeWritePart () override
 DvrInfo (const DvrInfo &model)
Protected Member Functions inherited from MsgQueue
int getRFd () const
int getWFd () const
void traceMsg (const std::string &log, XMLEle *root)
 MsgQueue (bool useSharedBuffer)
Protected Member Functions inherited from Collectable
HeartBeat heartBeat () const

Additional Inherited Members

Static Protected Member Functions inherited from MsgQueue
static void crackBLOB (const char *enableBLOB, BLOBHandling *bp)
Protected Attributes inherited from MsgQueue
bool useSharedBuffer

Detailed Description

Definition at line 32 of file DvrInfo.hpp.

Constructor & Destructor Documentation

◆ DvrInfo() [1/2]

DvrInfo::DvrInfo ( const DvrInfo & model)
protected

Definition at line 298 of file DvrInfo.cpp.

◆ DvrInfo() [2/2]

DvrInfo::DvrInfo ( bool useSharedBuffer)

Definition at line 291 of file DvrInfo.cpp.

◆ ~DvrInfo()

DvrInfo::~DvrInfo ( )
virtual

Definition at line 306 of file DvrInfo.cpp.

Member Function Documentation

◆ acceptSharedBuffers()

bool DvrInfo::acceptSharedBuffers ( ) const
inlineoverridevirtual

Reimplemented from MsgQueue.

Definition at line 98 of file DvrInfo.hpp.

◆ clone()

virtual DvrInfo * DvrInfo::clone ( ) const
pure virtual

Implemented in LocalDvrInfo, and RemoteDvrInfo.

◆ close()

void DvrInfo::close ( )
overridevirtual

Implements MsgQueue.

Definition at line 124 of file DvrInfo.cpp.

◆ closeWritePart()

void DvrInfo::closeWritePart ( )
overrideprotectedvirtual

Reimplemented from MsgQueue.

Definition at line 116 of file DvrInfo.cpp.

◆ findSDevice()

Property * DvrInfo::findSDevice ( const std::string & dev,
const std::string & name ) const

Definition at line 281 of file DvrInfo.cpp.

◆ isHandlingDevice()

bool DvrInfo::isHandlingDevice ( const std::string & dev) const

Definition at line 315 of file DvrInfo.cpp.

◆ log()

void DvrInfo::log ( const std::string & log) const
overridevirtual

Reimplemented from MsgQueue.

Definition at line 320 of file DvrInfo.cpp.

◆ onMessage()

void DvrInfo::onMessage ( XMLEle * root,
std::list< int > & sharedBuffers )
overrideprotectedvirtual

Implements MsgQueue.

Definition at line 30 of file DvrInfo.cpp.

◆ q2RDrivers()

void DvrInfo::q2RDrivers ( const std::string & dev,
Msg * mp,
XMLEle * root )
static

Definition at line 181 of file DvrInfo.cpp.

◆ q2SDrivers()

void DvrInfo::q2SDrivers ( DvrInfo * me,
int isblob,
const std::string & dev,
const std::string & name,
Msg * mp,
XMLEle * root )
static

Definition at line 230 of file DvrInfo.cpp.

◆ remoteServerUid()

virtual const std::string DvrInfo::remoteServerUid ( ) const
pure virtual

Implemented in LocalDvrInfo, and RemoteDvrInfo.

◆ start()

virtual void DvrInfo::start ( )
pure virtual

Implemented in LocalDvrInfo, and RemoteDvrInfo.

Member Data Documentation

◆ dev

std::set<std::string> DvrInfo::dev

Definition at line 59 of file DvrInfo.hpp.

◆ drivers

ConcurrentSet< DvrInfo > DvrInfo::drivers
static

Definition at line 95 of file DvrInfo.hpp.

◆ name

std::string DvrInfo::name

Definition at line 57 of file DvrInfo.hpp.

◆ restart

bool DvrInfo::restart = true

Definition at line 62 of file DvrInfo.hpp.

◆ restarts

int DvrInfo::restarts

Definition at line 61 of file DvrInfo.hpp.

◆ sprops

std::list<Property*> DvrInfo::sprops

Definition at line 60 of file DvrInfo.hpp.


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