#include <SharedSegment.h>
Public Member Functions | |
| SharedSegment (const char *name, size_t size) throw (ShareException) | |
| Create and attach new shared segment with given name and size. | |
| SharedSegment (const char *name) throw (ShareException) | |
| Attach to already existing shared segment. | |
| ~SharedSegment () throw () | |
| Detach from shared segment. | |
| const char * | name () const |
| |
| void * | atAddress () const |
| |
| void | destroy () |
| Destroy shared segment. | |
Definition at line 36 of file SharedSegment.h.
| Share::SharedSegment::SharedSegment | ( | const char * | name, | |
| size_t | size | |||
| ) | throw (ShareException) |
Create and attach new shared segment with given name and size.
If segment with given name already exists, ShareException is thrown.
| name | Name of segment created. | |
| size | Size of segment created. This size is fixed in this version of library. |
| ShareException | Library-specific exception derived from std::bad_alloc |
| Share::SharedSegment::SharedSegment | ( | const char * | name | ) | throw (ShareException) |
Attach to already existing shared segment.
If segment with given name does not exists, ShareException is thrown.
| name | Name of shared segment to attach to. |
| ShareException | Library-specific exception derived from std::bad_alloc |
| Share::SharedSegment::~SharedSegment | ( | ) | throw () |
Detach from shared segment.
| const char* Share::SharedSegment::name | ( | ) | const [inline] |
| void* Share::SharedSegment::atAddress | ( | ) | const [inline] |
| void Share::SharedSegment::destroy | ( | ) |
Destroy shared segment.
1.5.2