This is the Dtk_Stream Class.
The Dtk_Stream object is used to store any informations about stream file.
More...
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_Stream * | DtkDynamicCast (Dtk_Object *o) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_STREAM } |
Protected Member Functions | |
virtual Dtk_Object * | Clone () |
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_ |
This is the Dtk_Stream Class.
The Dtk_Stream object is used to store any informations about stream file.
|
protected |
|
protected |
|
protected |
Destructor.
|
protectedvirtual |
|
static |
Calls copy constructor to allocate a new object.
in | Object to copy from. |
|
static |
Create a Dtk_StreamPtr.
binaryContent | file data. |
binaryContentSize | file size. |
|
static |
Performs a dynamic cast - doesn't need RTTI -.
|
pure virtualinherited |
Implemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshPolyline, Dtk_MeshSurface, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Constraint, Dtk_ConstraintReference, Dtk_AxisSystem, Dtk_Preview, Dtk_Entity, Dtk_picture, Dtk_OverrideSet, Dtk_OverrideInfo, Dtk_MainDoc, Dtk_Component, Dtk_Node, Dtk_DocElement, Dtk_Log, and Dtk_Properties.
|
virtualinherited |
type_detk Dtk_Stream::get_type_detk | ( | ) | const |
const Dtk_Char8* const Dtk_Stream::GetBinaryContent | ( | ) | const |
Returns the file size.
const Dtk_Size_t Dtk_Stream::GetBinaryContentSize | ( | ) | const |
Returns the file data.
Dtk_string Dtk_Stream::GetName | ( | ) | const |
Returns the file name.
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Entity, and Dtk_Info.
Dtk_StreamType Dtk_Stream::GetStreamType | ( | ) | const |
Returns the stream type.
void Dtk_Stream::SetBinaryContent | ( | const Dtk_Char8 *const | inNewContent, |
const Dtk_Size_t | inNewContentSize | ||
) |
Set the file data.
inNewContent | The file data. |
inNewContentSize | The file data size. |
|
protected |
|
protectedinherited |