#include <dcpp.h>
When sending bulk data DRAMA messages, it is necessary to describe the bulk data shared memory segment. This type does this.
Public Types | |
| enum | SharedType { Create = DITS_SHARE_CREATE, Gblsec = DITS_SHARE_GBLSEC, Global = DITS_SHARE_GLOBAL, ShMem = DITS_SHARE_SHMEM, MMap = DITS_SHARE_MMAP } |
| This enum gives the various shared memory types. More... | |
Public Methods | |
| DcppShared (long Size, StatusType *const status, const SharedType Type=Create, const int CreateIt=true, const char *const Name="", const int Key=0, void *const Address=0) | |
| Basic Shared memory segment constructor. | |
| DcppShared (const SdsId &Template, StatusType *const status, const SharedType Type=Create, const int CreateIt=true, const char *const Name="", const int Key=0, void *const Address=0) | |
| Shared memory segment constructor - for an SDS structure. | |
| DcppShared (DitsSharedMemInfoType *Info, void *Address=0, SdsIdType ID=0, bool Free=false) | |
| Shared memory segment constructor - using existing segment. | |
| void | GetInfo (const DitsSharedMemInfoType **const Info, StatusType *const status) const |
| Get share memory details - const version. | |
| void | GetInfo (DitsSharedMemInfoType **const Info, StatusType *const status) |
| Get share memory details - non-const version. | |
| SdsId & | GetSds () |
| Return Sds structure id. | |
| const SdsId & | GetSds () const |
| Return Sds structure id - const version. | |
| void | GetAddress (const void **Address, StatusType *status) const |
| Return the shared memory address - const version. | |
| void | GetAddress (void **Address, StatusType *status) |
| Return the shared memory address - non-const version. | |
| virtual | ~DcppShared () |
| Destructor - free shared memory and SDS ID. | |
|
|
This enum gives the various shared memory types. This enum type is used with the DcppShared constructor to select the type of shared memory segment. The value of the argument of this type determines how some of the other arguments are used. See DitsDefineShared() for full details on this, refering to the enum value constants.
|
|
||||||||||||||||||||||||||||||||
|
Basic Shared memory segment constructor.
|
|
||||||||||||||||||||||||||||||||
|
Shared memory segment constructor - for an SDS structure. This version takes an SDS ID, which represents the structure to be stored in the shared memory segment.
|
|
||||||||||||||||||||
|
Shared memory segment constructor - using existing segment. This constructor initializes the object from an existing DitsSharedMemInfoType structure. Note, Address will only be known if passed in. Similary for the Sds ID. The SdsdD (if any) and shared memory segement are only released when by this object's destructure if the Free flag is set true.
|
|
|
Destructor - free shared memory and SDS ID.
|
|
||||||||||||
|
Return the shared memory address - non-const version.
|
|
||||||||||||
|
Return the shared memory address - const version.
|
|
||||||||||||
|
Get share memory details - non-const version. This function returns the shared memory details appropiate for use by DITS functions, non-const version.
|
|
||||||||||||
|
Get share memory details - const version. This function returns the shared memory details appropiate for use by DITS functions, const version.
|
|
|
Return Sds structure id - const version. Just returns the SDS id assoicated with this shared memory segment. If none is assoicated, this will be a null SDS id
|
|
|
Return Sds structure id. Just returns the SDS id assoicated with this shared memory segment. If none is assoicated, this will be a null SDS id
|
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aaoepp.aao.gov.au Generated on Tue Nov 3 09:09:56 2009 for AAO DRAMA C++ Interfaces by
1.2.18