Instrument Neutral Distributed Interface INDI 2.2.5
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
ClInfo Class Reference

#include <ClInfo.hpp>

Inheritance diagram for ClInfo:
MsgQueue Collectable

Public Member Functions

 ClInfo (bool useSharedBuffer)
 
virtual ~ClInfo ()
 
int findDevice (const std::string &dev, const std::string &name) const
 
void addDevice (const std::string &dev, const std::string &name, int isblob)
 
virtual void log (const std::string &log) const
 
- 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)
 
virtual bool acceptSharedBuffers () const
 

Static Public Member Functions

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

Public Attributes

std::list< Property * > props
 
int allprops = 0
 
BLOBHandling blob = B_NEVER
 

Static Public Attributes

static ConcurrentSet< ClInfo > clients
 

Protected Member Functions

virtual void onMessage (XMLEle *root, std::list< int > &sharedBuffers)
 
void crackBLOBHandling (const std::string &dev, const std::string &name, const char *enableBLOB)
 
virtual void close ()
 
- Protected Member Functions inherited from MsgQueue
int getRFd () const
 
int getWFd () const
 
void traceMsg (const std::string &log, XMLEle *root)
 
virtual void closeWritePart ()
 
 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 29 of file ClInfo.hpp.

Constructor & Destructor Documentation

◆ ClInfo()

ClInfo::ClInfo ( bool  useSharedBuffer)

Definition at line 305 of file ClInfo.cpp.

◆ ~ClInfo()

ClInfo::~ClInfo ( )
virtual

Definition at line 310 of file ClInfo.cpp.

Member Function Documentation

◆ addDevice()

void ClInfo::addDevice ( const std::string &  dev,
const std::string &  name,
int  isblob 
)

Definition at line 264 of file ClInfo.cpp.

◆ close()

void ClInfo::close ( )
protectedvirtual

Implements MsgQueue.

Definition at line 96 of file ClInfo.cpp.

◆ crackBLOBHandling()

void ClInfo::crackBLOBHandling ( const std::string &  dev,
const std::string &  name,
const char *  enableBLOB 
)
protected

Definition at line 283 of file ClInfo.cpp.

◆ findDevice()

int ClInfo::findDevice ( const std::string &  dev,
const std::string &  name 
) const

Definition at line 252 of file ClInfo.cpp.

◆ log()

void ClInfo::log ( const std::string &  log) const
virtual

Reimplemented from MsgQueue.

Definition at line 320 of file ClInfo.cpp.

◆ onMessage()

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

Implements MsgQueue.

Definition at line 30 of file ClInfo.cpp.

◆ q2Clients()

void ClInfo::q2Clients ( ClInfo *  notme,
int  isblob,
const std::string &  dev,
const std::string &  name,
Msg *  mp,
XMLEle *  root 
)
static

Definition at line 109 of file ClInfo.cpp.

◆ q2Servers()

void ClInfo::q2Servers ( DvrInfo *  me,
Msg *  mp,
XMLEle *  root 
)
static

Definition at line 195 of file ClInfo.cpp.

Member Data Documentation

◆ allprops

int ClInfo::allprops = 0

Definition at line 45 of file ClInfo.hpp.

◆ blob

BLOBHandling ClInfo::blob = B_NEVER

Definition at line 46 of file ClInfo.hpp.

◆ clients

ConcurrentSet< ClInfo > ClInfo::clients
static

Definition at line 71 of file ClInfo.hpp.

◆ props

std::list<Property*> ClInfo::props

Definition at line 44 of file ClInfo.hpp.


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