Index

dkBlob

Purpose:

dkBlob is an abstract class that declares a common public interface for basic binary large object (BLOB) data types in Content Manager and other datastores. The concrete classes derived from dkBlob share this common interface, allowing polymorphic processing of blob object collections originating from heterogeneous datastores.

dkBlob is a subclass of dkXDO and it supports DK_CM_XDO protocol.

Heirarchy:

dkDataObjectBase
 
 dkXDOBase
   dkXDO
    dkBlob

Class summary:

class dkBlob : public dkXDO  {
 
  public:
 
   virtual dkBlob&  operator +=(const dkBlob& adkBlob);
   virtual dkBlob&  operator +=(const DKString& astring);
   virtual long     indexOf(const DKString& astring,
                              long startPos=1) const;
   virtual long     indexOf(const dkBlob& adkBlob,
                              long startpos=1) const;
   virtual DKString  subString(long startpos,
                                long length) const;
   virtual dkBlob&  remove(long startpos,
                             long alength);
   virtual dkBlob&  insert(const DKString& astring,
                             long  startpos);
   virtual dkBlob&  insert(const dkBlob& adkBlob,
                             long  startpos);
}

Members:

Member functions

operator +=
Concatenates this object with another dkBlob object or string. The results of the concatenation replace the existing contents of this object.
virtual dkBlob&  operator +=(const dkBlob& adkBlob);
virtual dkBlob&  operator +=(const DKString& astring);

indexOf
Returns the byte offset of the first occurrence of the search argument within this object, starting the search at offset startPos. The first position in the string is position 1. If the search argument is not found, or if startPos is beyond the end of data, zero is returned.
virtual long indexOf(const DKString& astring, long startPos=1) const;
   virtual long indexOf(const dkBlob& adkBlob,                              long startpos=1) const;

subString
Returns a string object containing a substring of the LOB data of this object. The substring will be taken starting at byte offset startPos, and extracting aLength bytes.
virtual DKString  subString(long startpos,
                                long length) const;

remove
Deletes the portion of the LOB data of this object starting at startPos, for aLength bytes.
virtual dkBlob&  remove(long startpos,
                             long alength);

insert
Inserts the argument data, following position startPos in the LOB data of this object.
virtual dkBlob&  insert(const DKString& astring, long  startpos);
virtual dkBlob&  insert(const dkBlob& adkBlob,
                             long  startpos);

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.