DATAKIT API  V2025.4
Dtk_Stream Class Referenceabstract

This is the Dtk_Stream Class.
The Dtk_Stream object is used to store any informations about stream file. More...

+ Inheritance diagram for Dtk_Stream:

Public Types

enum  Dtk_StreamType { DTK_STREAM_UNKNOWN, DTK_STREAM_X_B, DTK_STREAM_JT, DTK_STREAM_XMM_B }
 

Public Member Functions

Dtk_Int32 DtkDynamicType (const Dtk_Int32 &inId)
 Retrieves the dynamic entity type. More...
 
virtual int DtkDynamicType (const int &inId)=0
 
virtual void dump (FILE *file=stdout)
 
type_detk get_type_detk () const
 
const Dtk_Char8 *const GetBinaryContent () const
 Returns the file size. More...
 
const Dtk_Size_t GetBinaryContentSize () const
 Returns the file data. More...
 
Dtk_string GetName () const
 Returns the file name. More...
 
virtual Dtk_Size_t GetSize () const
 
Dtk_StreamType GetStreamType () const
 Returns the stream type. More...
 
void SetBinaryContent (const Dtk_Char8 *const inNewContent, const Dtk_Size_t inNewContentSize)
 Set the file data. More...
 

Static Public Member Functions

static Dtk_StreamPtr Create (const Dtk_Stream &in)
 Calls copy constructor to allocate a new object. More...
 
static Dtk_StreamPtr Create (const Dtk_string &inName, const Dtk_Char8 *const inBinaryContent, const Dtk_Size_t &inBinaryContentSize, Dtk_StreamType inType)
 Create a Dtk_StreamPtr. More...
 
static Dtk_StreamDtkDynamicCast (Dtk_Object *o)
 Performs a dynamic cast - doesn't need RTTI -. More...
 

Protected Types

enum  { _typeID = DTK_TYPE_STREAM }
 

Protected Member Functions

virtual Dtk_ObjectClone ()
 
 Dtk_Stream (const Dtk_Stream &in)
 
 Dtk_Stream (const Dtk_string &inName, const Dtk_Char8 *const inBinaryContent, const Dtk_Size_t &inBinaryContentSize, Dtk_StreamType inType)
 
 ~Dtk_Stream ()
 Destructor. More...
 

Protected Attributes

Dtk_Handle * _Private
 
unsigned long count_
 

Detailed Description

This is the Dtk_Stream Class.
The Dtk_Stream object is used to store any informations about stream file.

See also
Use Dtk_StreamPtr class to handle it.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
_typeID 

◆ Dtk_StreamType

Enumerator
DTK_STREAM_UNKNOWN 
DTK_STREAM_X_B 
DTK_STREAM_JT 
DTK_STREAM_XMM_B 

Constructor & Destructor Documentation

◆ Dtk_Stream() [1/2]

Dtk_Stream::Dtk_Stream ( const Dtk_string inName,
const Dtk_Char8 *const  inBinaryContent,
const Dtk_Size_t inBinaryContentSize,
Dtk_StreamType  inType 
)
protected

◆ Dtk_Stream() [2/2]

Dtk_Stream::Dtk_Stream ( const Dtk_Stream in)
protected

◆ ~Dtk_Stream()

Dtk_Stream::~Dtk_Stream ( )
protected

Destructor.

Member Function Documentation

◆ Clone()

virtual Dtk_Object* Dtk_Stream::Clone ( )
protectedvirtual

◆ Create() [1/2]

static Dtk_StreamPtr Dtk_Stream::Create ( const Dtk_Stream in)
static

Calls copy constructor to allocate a new object.

Parameters
inObject to copy from.

◆ Create() [2/2]

static Dtk_StreamPtr Dtk_Stream::Create ( const Dtk_string inName,
const Dtk_Char8 *const  inBinaryContent,
const Dtk_Size_t inBinaryContentSize,
Dtk_StreamType  inType 
)
static

Create a Dtk_StreamPtr.

Parameters
binaryContentfile data.
binaryContentSizefile size.

◆ DtkDynamicCast()

static Dtk_Stream* Dtk_Stream::DtkDynamicCast ( Dtk_Object o)
static

Performs a dynamic cast - doesn't need RTTI -.

◆ DtkDynamicType() [1/2]

Dtk_Int32 Dtk_Stream::DtkDynamicType ( const Dtk_Int32 inId)

Retrieves the dynamic entity type.

◆ DtkDynamicType() [2/2]

◆ dump()

virtual void Dtk_Object::dump ( FILE *  file = stdout)
virtualinherited

◆ get_type_detk()

type_detk Dtk_Stream::get_type_detk ( ) const

◆ GetBinaryContent()

const Dtk_Char8* const Dtk_Stream::GetBinaryContent ( ) const

Returns the file size.

◆ GetBinaryContentSize()

const Dtk_Size_t Dtk_Stream::GetBinaryContentSize ( ) const

Returns the file data.

◆ GetName()

Dtk_string Dtk_Stream::GetName ( ) const

Returns the file name.

◆ GetSize()

◆ GetStreamType()

Dtk_StreamType Dtk_Stream::GetStreamType ( ) const

Returns the stream type.

◆ SetBinaryContent()

void Dtk_Stream::SetBinaryContent ( const Dtk_Char8 *const  inNewContent,
const Dtk_Size_t  inNewContentSize 
)

Set the file data.

Parameters
inNewContentThe file data.
inNewContentSizeThe file data size.

Field Documentation

◆ _Private

Dtk_Handle* Dtk_Stream::_Private
protected

◆ count_

unsigned long Dtk_Object::count_
protectedinherited