dime  0.9.1
Portable DXF file library
Loading...
Searching...
No Matches
dimeDoubleRecord Class Reference

The dimeDoubleRecord class is a container class for double records. More...

#include <dime/records/DoubleRecord.h>

Inheritance diagram for dimeDoubleRecord:
dimeRecord dimeBase

Public Member Functions

 dimeDoubleRecord (const int group_code=10, const dxfdouble val=0.0f)
 
virtual dimeRecordcopy (dimeMemHandler *const mh) const
 
dxfdouble getValue () const
 
virtual void getValue (dimeParam &param) const
 
bool read (dimeInput *const in)
 
virtual void setValue (const dimeParam &param, dimeMemHandler *const memhandler=NULL)
 
void setValue (const dxfdouble val)
 
int typeId () const
 
bool write (dimeOutput *const out)
 
- Public Member Functions inherited from dimeRecord
 dimeRecord (const int group_code)
 
virtual ~dimeRecord ()
 
int getGroupCode () const
 
virtual bool isEndOfFileRecord () const
 
virtual bool isEndOfSectionRecord () const
 
virtual void print () const
 
void setGroupCode (const int group_code)
 
- Public Member Functions inherited from dimeBase
 dimeBase (void)
 
virtual ~dimeBase ()
 
virtual bool isOfType (const int thetypeid) const
 
void operator delete (void *ptr)
 
void * operator new (size_t size, dimeMemHandler *memhandler=NULL, const int alignment=4)
 

Additional Inherited Members

- Public Types inherited from dimeBase
enum  {
  dimeBaseType = 1 , dimeRecordType , dimeStringRecordType , dimeFloatRecordType ,
  dimeDoubleRecordType , dimeInt8RecordType , dimeInt16RecordType , dimeInt32RecordType ,
  dimeHexRecordType , dimeRecordHolderType , dimeClassType , dimeUnknownClassType ,
  dimeObjectType , dimeUnknownObjectType , dimeEntityType , dimeUnknownEntityType ,
  dimePolylineType , dimeVertexType , dimeFaceEntityType , dimeExtrusionEntityType ,
  dime3DFaceType , dimeSolidType , dimeTraceType , dimeLineType ,
  dimeTextType , dimePointType , dimeBlockType , dimeInsertType ,
  dimeCircleType , dimeArcType , dimeLWPolylineType , dimeEllipseType ,
  dimeSplineType , dimeSectionType , dimeUnknownSectionType , dimeEntitiesSectionType ,
  dimeBlocksSectionType , dimeTablesSectionType , dimeHeaderSectionType , dimeClassesSectionType ,
  dimeObjectsSectionType , dimeTableType , dimeTableEntryType , dimeUnknownTableType ,
  dimeUCSTableType , dimeLayerTableType , dimeLastTypeTag
}
 
- Static Public Member Functions inherited from dimeRecord
static dimeRecordcreateRecord (const int group_code, const dimeParam &param, dimeMemHandler *const memhandler)
 
static dimeRecordcreateRecord (const int group_code, dimeMemHandler *const memhandler)
 
static int getRecordType (const int group_code)
 
static dimeRecordreadRecord (dimeInput *const in)
 
static bool readRecordData (dimeInput *const in, const int group_code, dimeParam &param)
 
- Protected Attributes inherited from dimeRecord
int groupCode
 

Detailed Description

The dimeDoubleRecord class is a container class for double records.

Constructor & Destructor Documentation

◆ dimeDoubleRecord()

dimeDoubleRecord::dimeDoubleRecord ( const int group_code = 10,
const dxfdouble val = 0.0f )

Constructor.

Member Function Documentation

◆ copy()

dimeRecord * dimeDoubleRecord::copy ( dimeMemHandler *const memhandler) const
virtual

Returns a copy of this record.

Implements dimeRecord.

◆ getValue() [1/2]

dxfdouble dimeDoubleRecord::getValue ( ) const

Returns the floating point value of this record.

◆ getValue() [2/2]

void dimeDoubleRecord::getValue ( dimeParam & param) const
virtual

Returns the value of this record.

Implements dimeRecord.

◆ read()

bool dimeDoubleRecord::read ( dimeInput *const in)
virtual

This function will read the record from the dimeInput file.

Implements dimeRecord.

◆ setValue() [1/2]

void dimeDoubleRecord::setValue ( const dimeParam & param,
dimeMemHandler *const memhandler = NULL )
virtual

Sets the value of this record. The memory handler is needed by dimeStringRecord.

Implements dimeRecord.

◆ setValue() [2/2]

void dimeDoubleRecord::setValue ( const dxfdouble val)

Sets the floating point value.

◆ typeId()

int dimeDoubleRecord::typeId ( ) const
virtual

This virtual function will return the type of the record.

Implements dimeRecord.

◆ write()

bool dimeDoubleRecord::write ( dimeOutput *const out)
virtual

This function will write the record to the dimeOutput file.

Reimplemented from dimeRecord.


The documentation for this class was generated from the following files: