#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) |
Standard_EXPORT | 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. . | |
Standard_EXPORT | 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. . | |
Standard_EXPORT void | Build () |
Creates a shared memory in the system This is for a server process. . | |
Standard_EXPORT 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. . | |
Standard_EXPORT void | Delete () |
Removes a shared memory access. This is used only by a server process ! . | |
Standard_EXPORT Standard_Address | GiveAddress () const |
Returns address of shared memory. Raises NullObject when the Shared Memory is not created. . | |
Standard_EXPORT Standard_Boolean | Failed () const |
Returns TRUE if an error occurs . | |
Standard_EXPORT void | Reset () |
Resets error counter to zero . | |
Standard_EXPORT void | Perror () |
Raises OSD_Error . | |
Standard_EXPORT Standard_Integer | Error () const |
Returns error number if 'Failed' is TRUE. . | |
Private Attributes | |
Standard_Integer | myId |
Standard_Address | myAddress |
TCollection_AsciiString | myName |
Standard_Integer | mySize |
OSD_Error | myError |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|