Purpose:
DKStreamICM represents streamable resource objects in Content Manager. A resource object consists of content stored in a resource manager and the metadata describing the content stored in the library server of Content Manager. DKStreamICM is a subclass of dkResource and DKLobICM, therefore inherits the properties of a resource object defined by these classes. This class extends its superclasses with properties and behaviors specific for streamable large objects, including the following:
Important: This class represents a generic streamable object. For video stream objects the video specific subclass, DKVideoStream should be used.
See Also: DKLobICM
Since: Version 8
Class summary:
class DKEXPORT DKStreamICM : public DKStreamICM { public: DKStreamICM(); DKStreamICM(DKDatastoreICM* aDatastore); DKStreamICM(DKDatastoreICM* aDatastore, DKByteArray *pByteArray); DKStreamICM(const DKStreamICM& aDKStreamICM); virtual ~DKStreamICM(); void setStreamAccessMode(DKString mode); void setStreamGroup(DKString group); void setPlayStart(DKString starttime); void setPlayStop(DKString stoptime); DKString getStreamAccessMode(); DKString getPlayStart(); DKString getPlayStop(); void setStreamMediaState( int mediastate); void setStreamExtObjectName( DKString extobjname); void setStreamFormat(DKString streamformat); void setStreamCopyRate( int copyrate); void setStreamNumUsers( int numusers); void setStreamInvalidCommands( int mediainvcmds); int getStreamDuration(); int getStreamMediaState(); DKString getStreamExtObjectName(); DKString getStreamFormat(); int getStreamCopyRate(); int getStreamNumUsers(); int getStreamInvalidCommands(); int setStreamBitrate(); DKString getStreamGroup(); virtual dkXDO* cloneSkeleton(); virtual char* retrieveStreamInfo(); };
Members:
DKStreamICM(); Default constructor for streamable resource objects. Parameters: None.
DKStreamICM(DKDatastoreICM* aDatastore); Constructs a streamable resource object associated with the specified datastore. Equivalent to calling the default constructor followed by the setDatastore method. Parameters: aDatastore - the associated datastore as an instance of DKDatastoreICM.
DKStreamICM(DKDatastoreICM* aDatastore, DKByteArray *pByteArray); Constructs a streamable resource object associated with the datastore, then sets the initial content to the contents of string variable. Parameters: aDatastore - The associated datastore as an instance of DKDatastoreICM. pByteArray - The byte array as the initial content of the text resource.
DKStreamICM(const DKStreamICM& aDKStreamICM); The copy constructor for this object. Parameters: aDKStreamICM - instance of DKStreamICM to be used as a template for constructing this streamable resource object.
virtual ~DKStreamICM(); Destructor for this object.
void setStreamAccessMode(DKString mode);
void setStreamGroup(DKString group);
void setPlayStart(DKString starttime);
void setPlayStop(DKString stoptime);
DKString getStreamAccessMode();
DKString getPlayStart();
DKString getPlayStop();
void setStreamMediaState(int mediastate);
void setStreamExtObjectName(DKString extobjname);
void setStreamFormat(DKString streamformat);
void setStreamCopyRate(int copyrate);
void setStreamNumUsers(int numusers);
void setStreamInvalidCommands(int mediainvcmds);
int getStreamDurations();
int getStreamMediaState();
DKString getStreamExtObjectName();
DKString getStreamFormat();
int getStreamCopyRate();
int getStreamNumUsers();
int getStreamInvalidCommands();
Parameters: None
Returns: The bit rate as an integer.
Memory management: None
int getStreamBitRate();
Parameters: None
Returns: group - The name of the group used to store this stream.
Memory management: None
DKString getStreamGroup();
char * retrieveStreamInfo();
char * extractMimeTypeFromStreaminfo( DKString streamInfo);
(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.