LSMP_ACCESS Class Reference

#include <lsmp.hh>

Inheritance diagram for LSMP_ACCESS:

LSMP

List of all members.

Public Member Functions

 LSMP_ACCESS ()
 LSMP_ACCESS (const char *part)
 ~LSMP_ACCESS ()
void Repair (int ID=-1)
void Spew (int jBuf, std::ostream &Out, int length=0)


Detailed Description

LSMP_ACCESS provides an interface to the shared memory partition for data management functions. The shared memory partition is attached by the LSMP_ACCESS constructor. brief Shared Memory Maintenance Class.

Constructor & Destructor Documentation

LSMP_ACCESS::LSMP_ACCESS (  ) 

LSMP_ACCESS() constructs a null accessor, not connected to any partition. brief Default constructor.

LSMP_ACCESS::LSMP_ACCESS ( const char *  part  ) 

Initialize a accessor structure and attach it to an existing partition. If the named partition doesn't exist, no partition is attached. brief Attach to a partition.

LSMP_ACCESS::~LSMP_ACCESS (  ) 

If a partition is attached, it is released (see LSMP::release). brief Accessor destructor.


Member Function Documentation

void LSMP_ACCESS::Repair ( int  ID = -1  ) 

All consumers are tested for an existing process. If the process doesn't exist, the consumer is deleted. Buffers are also released if no consumers exist or if they are reserved by a non-existant producer. brief Repair a partition.

void LSMP_ACCESS::Spew ( int  jBuf,
std::ostream &  Out,
int  length = 0 
)

The data in a specified buffer are copied to the specified output stream. No consumer synchronization is performed. brief Binary copy one buffer to an output stream.

Parameters:
jBuf ID iof the buffer to be spewed.
Out stream to receive the data.
length Number of bytes to copy.


The documentation for this class was generated from the following file:
Generated on Sun Mar 8 19:21:09 2009 for dmt by  doxygen 1.5.4