![]() | InDesign SDK 20.5 |
#include <IBlackBoxData.h>

Public Types | |
| enum | { kDefaultIID = IID_IBLACKBOXDATA } |
Public Member Functions | |
| virtual int32 | GetDataLength (BlackBoxKey clsID)=0 |
| virtual int32 | ReadData (BlackBoxKey key, void *buffer, int32 amountToRead)=0 |
| virtual void | WriteData (BlackBoxKey key, void *buffer, int32 length)=0 |
| virtual void | RemoveData (BlackBoxKey key)=0 |
| virtual BlackBoxKey | GetNextKey (BlackBoxKey key) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This is an interface to a container for generic data. Use this interface if you want to attach data to an InDesign document, but you want complete control and responsibility over how the data is managed.
| pure virtual |
Use this to find out if the black box already has data stored under your key.
| key | the key to check for |
| pure virtual |
For internal use only
| pure virtual |
Read data out of the black box and into the buffer passed in by the client.
| key | the key used for storing the data originally |
| buffer | to place the data in |
| amountToRead | maximum amount to read |
| pure virtual |
Remove the data stored with the key from the buffer. If there is no data this does nothing.
| key | specifies which piece of data to delete ( |
| pure virtual |
Write data out of the buffer, into the black box, using the supplied key. The key can be used later to read the data back in. If there is already data stored under that key, the old data is replaced by the new data. Therefore make sure you use a unique key that was created using a prefix that has been assigned to your exclusive use.
| key | to associate with the data |
| buffer | that contains the data |
| length | number of bytes to write |