IPC Tools -Shared Memory
This is a low level interface for communications.
Using shared memory, processes can use a common area to
communicate.
You can create and delete a shared memory.
#include <OSD_SharedMemory.hxx>
Public Member Functions |
| void * | operator new (size_t, void *anAddress) |
| void * | operator new (size_t size) |
| void | operator delete (void *anAddress) |
| | OSD_SharedMemory () |
| | Allocates room for shared memory name.
This is to be used with 'Open'.
In this case, the process is a client of shared memory.
|
| | OSD_SharedMemory (const TCollection_AsciiString &Name, const Standard_Integer size) |
| | Instantiates SharedMemory object with parameters.
A name to make sure shared memory is unique and a size in
bytes for the size of shared memory.
|
| void | Build () |
| | Creates a shared memory in the system
This is for a server process.
|
| void | Open (const TCollection_AsciiString &Name, const Standard_Integer size) |
| | Opens a shared memory
Raises ConstructionError when the name contains characters
not in range of ' '...'~'.
Raises ProgramError when the size given is negative or null.
This is for a server process.
|
| void | Delete () |
| | Removes a shared memory access.
This is used only by a server process !
|
| Standard_Address | GiveAddress () const |
| | Returns address of shared memory.
Raises NullObject when the Shared Memory is not created.
|
| Standard_Boolean | Failed () const |
| | Returns TRUE if an error occurs
|
| void | Reset () |
| | Resets error counter to zero
|
| void | Perror () |
| | Raises OSD_Error
|
| Standard_Integer | Error () const |
| | Returns error number if 'Failed' is TRUE.
|
Constructor & Destructor Documentation
| OSD_SharedMemory::OSD_SharedMemory |
( |
| ) |
|
Member Function Documentation
| void OSD_SharedMemory::Build |
( |
| ) |
|
| void OSD_SharedMemory::Delete |
( |
| ) |
|
| void OSD_SharedMemory::operator delete |
( |
void * |
anAddress | ) |
[inline] |
| void* OSD_SharedMemory::operator new |
( |
size_t |
size | ) |
[inline] |
| void* OSD_SharedMemory::operator new |
( |
size_t |
, |
|
|
void * |
anAddress |
|
) |
| [inline] |
| void OSD_SharedMemory::Perror |
( |
| ) |
|
| void OSD_SharedMemory::Reset |
( |
| ) |
|
The documentation for this class was generated from the following file: