code::LBInterfaceInfo_lb Class Reference

Inheritance diagram for code::LBInterfaceInfo_lb:

code::LBInterfaceInfo List of all members.

Detailed Description

LBInterfaceInfo_lb is an implementation of LBInterface that uses orpg's LB_* calls to manipulate local linear buffer files.

The code for this class is in LinearBuffer.C

See also:
LinearBuffer

LBInterface

Author:
Lakshman
Version:
Id
code_LBInterface_lb.h,v 1.5 2009/06/02 20:17:38 lakshman Exp


Public Member Functions

 LBInterfaceInfo_lb (const URL &lbName)
virtual ~LBInterfaceInfo_lb ()
virtual int open (int flags, LB_attr *attr)
virtual int read (void *buf, int buflen, LB_id_t msgid)
virtual int read (std::vector< char > &buf, LB_id_t msgid)
virtual int write (char *message, int length, LB_id_t msgid)
virtual int close ()
virtual int seek (int offset, LB_id_t from, LB_info *info)
virtual int stat (LB_status *status)
virtual int list (LB_info *lst, int nlist)
virtual LB_id_t previous_msgid ()
virtual int lock (int command, LB_id_t mid)
virtual int msg_info (LB_id_t msgid, LB_info *info)

Static Public Member Functions

static LBInterfaceInfocreateLBInterfaceInfo (const URL &lbName)
 Singleton: only one interface per lbname.

Public Attributes

int id
 LB library identifier.
code::URL name
 Name of LB.
DoNothingThreadMutex lbMutex
 Mutex to serialize access to LB.

Static Protected Member Functions

static bool isHostNameSyntax (const char *lbName)
 For checking whether the name is of host name syntax.


Constructor & Destructor Documentation

code::LBInterfaceInfo_lb::LBInterfaceInfo_lb ( const URL lbName  )  [inline]

virtual code::LBInterfaceInfo_lb::~LBInterfaceInfo_lb (  )  [inline, virtual]


Member Function Documentation

virtual int code::LBInterfaceInfo_lb::close (  )  [inline, virtual]

Implements code::LBInterfaceInfo.

static LBInterfaceInfo* code::LBInterfaceInfo::createLBInterfaceInfo ( const URL lbName  )  [static, inherited]

Singleton: only one interface per lbname.

Returns:
already-created interface if available.

static bool code::LBInterfaceInfo::isHostNameSyntax ( const char *  lbName  )  [static, protected, inherited]

For checking whether the name is of host name syntax.

virtual int code::LBInterfaceInfo_lb::list ( LB_info *  lst,
int  nlist 
) [inline, virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_lb::lock ( int  command,
LB_id_t  mid 
) [inline, virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_lb::msg_info ( LB_id_t  msgid,
LB_info *  info 
) [inline, virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_lb::open ( int  flags,
LB_attr *  attr 
) [inline, virtual]

Implements code::LBInterfaceInfo.

virtual LB_id_t code::LBInterfaceInfo_lb::previous_msgid (  )  [inline, virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_lb::read ( std::vector< char > &  buf,
LB_id_t  msgid 
) [inline, virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_lb::read ( void *  buf,
int  buflen,
LB_id_t  msgid 
) [inline, virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_lb::seek ( int  offset,
LB_id_t  from,
LB_info *  info 
) [inline, virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_lb::stat ( LB_status *  status  )  [inline, virtual]

Implements code::LBInterfaceInfo.

virtual int code::LBInterfaceInfo_lb::write ( char *  message,
int  length,
LB_id_t  msgid 
) [inline, virtual]

Implements code::LBInterfaceInfo.


Member Data Documentation

int code::LBInterfaceInfo::id [inherited]

LB library identifier.

DoNothingThreadMutex code::LBInterfaceInfo::lbMutex [inherited]

Mutex to serialize access to LB.

code::URL code::LBInterfaceInfo::name [inherited]

Name of LB.

Has machine name if remote.


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7