#include <ngcbSHMDB.hpp>
Public Member Functions | |
| ngcbSHMDB (const char *app, const char *s, void *initBuffer=NULL, size_t size=0) | |
| Constructor. | |
| virtual | ~ngcbSHMDB () |
| Destructor. | |
| int | Initialized () |
| Check if initialization was OK. | |
| char * | ErrMsg () |
| Error message. | |
| int | Lock () |
| Lock shared memory. | |
| void | Unlock () |
| Unlock shared memory. | |
| int | Set (const void *buffer) |
| Set shared memory buffer. | |
| int | Get (void *buffer) |
| Get shared memory buffer. | |
| int | ShmId () |
| Return shared memory id. | |
| size_t | Size () |
| Return shared memory size. | |
| int | SemId () |
| Return semaphore id. | |
| int | Key () |
| Return IPC-key. | |
| const char * | KeyFile () |
| Return key-file name. | |
| void | Remove () |
| Remove database. | |
Public Attributes | |
| void * | shmBuf |
| Shared memory buffer. | |
Protected Member Functions | |
| void | Initialized (int flag) |
| Set initialization flag. | |
Shared memory database class
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inline |
Error message.
|
inline |
Get shared memory buffer.
|
inline |
Check if initialization was OK.
|
inlineprotected |
Set initialization flag.
|
inline |
Return IPC-key.
|
inline |
Return key-file name.
|
inline |
Lock shared memory.
|
inline |
Remove database.
|
inline |
Return semaphore id.
|
inline |
Set shared memory buffer.
|
inline |
Return shared memory id.
|
inline |
Return shared memory size.
|
inline |
Unlock shared memory.
| void* ngcbSHMDB::shmBuf |
Shared memory buffer.