GLC_Rep Class Reference

GLC_Rep : Abstract class for a reference represention. More...

#include <glc_rep.h>

Inheritance diagram for GLC_Rep:
GLC_3DRep

List of all members.

Public Types

enum  Type { GLC_VBOGEOM = 1 }

Public Member Functions

Constructor / Destructor

 GLC_Rep ()
 Default constructor.
 GLC_Rep (const GLC_Rep &)
 Copy constructor.
virtual GLC_Repoperator= (const GLC_Rep &)
 Assignement operator.
virtual GLC_Repclone () const =0
 Clone the representation.
virtual GLC_RepdeepCopy () const =0
 Return a deep copy of the representation.
virtual ~GLC_Rep ()
 Destructor.
Get Functions

bool isTheLast () const
 Return true if the representation is the last.
bool operator== (const GLC_Rep &rep)
 Return true if representations are equals.
QString fileName () const
 Return the representation file name.
virtual int type () const =0
 Return the type of representation.
QString name () const
 Return the name of the rep.
virtual bool isEmpty () const =0
 Return true if the representation is empty.
bool isLoaded () const
 Return true if the representation as been loaded.
QDateTime lastModified () const
 Return the rep file las modified date and time.
Set Functions

void setFileName (const QString &fileName)
 Set the representation FileName.
void setName (const QString &name)
 Set the representation Name.
virtual bool load ()=0
 Load the representation.
virtual bool unload ()=0
 UnLoad the representation.
virtual void replace (GLC_Rep *)=0
 Replace the representation.
void setLastModified (const QDateTime &dateTime)
 Set the last modified date and time.

Protected Attributes

bool * m_pIsLoaded
 Flag to know if the representation has been loaded.

Private Member Functions

void clear ()
 Clear current representation.

Private Attributes

int * m_pNumberOfRepresentation
 Number of this representation.
QString * m_pFileName
 The File Name of this representation.
QString * m_pName
 The Name of the rep.
QDateTime * m_pDateTime
 The Date and time of the rep.

Detailed Description

GLC_Rep : Abstract class for a reference represention.

Definition at line 36 of file glc_rep.h.


Member Enumeration Documentation

Enumerator:
GLC_VBOGEOM 

Definition at line 39 of file glc_rep.h.


Constructor & Destructor Documentation

GLC_Rep::GLC_Rep (  ) 

Default constructor.

Definition at line 28 of file glc_rep.cpp.

GLC_Rep::GLC_Rep ( const GLC_Rep rep  ) 

Copy constructor.

Definition at line 39 of file glc_rep.cpp.

GLC_Rep::~GLC_Rep (  )  [virtual]

Destructor.

Definition at line 68 of file glc_rep.cpp.

References clear().


Member Function Documentation

void GLC_Rep::clear (  )  [private]

Clear current representation.

Reimplemented in GLC_3DRep.

Definition at line 79 of file glc_rep.cpp.

References m_pDateTime, m_pFileName, m_pIsLoaded, m_pName, and m_pNumberOfRepresentation.

Referenced by operator=(), and ~GLC_Rep().

virtual GLC_Rep* GLC_Rep::clone (  )  const [pure virtual]

Clone the representation.

Implemented in GLC_3DRep.

Referenced by GLC_StructReference::GLC_StructReference(), and GLC_StructReference::operator=().

virtual GLC_Rep* GLC_Rep::deepCopy (  )  const [pure virtual]

Return a deep copy of the representation.

Implemented in GLC_3DRep.

QString GLC_Rep::fileName (  )  const [inline]
virtual bool GLC_Rep::isEmpty (  )  const [pure virtual]

Return true if the representation is empty.

Implemented in GLC_3DRep.

bool GLC_Rep::isLoaded (  )  const [inline]

Return true if the representation as been loaded.

Definition at line 98 of file glc_rep.h.

bool GLC_Rep::isTheLast (  )  const [inline]

Return true if the representation is the last.

Definition at line 74 of file glc_rep.h.

Referenced by GLC_3DRep::clear().

QDateTime GLC_Rep::lastModified (  )  const [inline]

Return the rep file las modified date and time.

Definition at line 102 of file glc_rep.h.

Referenced by GLC_BSRep::save().

virtual bool GLC_Rep::load (  )  [pure virtual]

Load the representation.

Implemented in GLC_3DRep.

Referenced by GLC_StructOccurence::loadRepresentation().

QString GLC_Rep::name (  )  const [inline]
GLC_Rep & GLC_Rep::operator= ( const GLC_Rep rep  )  [virtual]

Assignement operator.

Definition at line 50 of file glc_rep.cpp.

References clear(), m_pDateTime, m_pFileName, m_pIsLoaded, m_pName, and m_pNumberOfRepresentation.

bool GLC_Rep::operator== ( const GLC_Rep rep  )  [inline]

Return true if representations are equals.

Definition at line 78 of file glc_rep.h.

References m_pNumberOfRepresentation.

virtual void GLC_Rep::replace ( GLC_Rep  )  [pure virtual]

Replace the representation.

Implemented in GLC_3DRep.

void GLC_Rep::setFileName ( const QString &  fileName  )  [inline]
void GLC_Rep::setLastModified ( const QDateTime &  dateTime  )  [inline]

Set the last modified date and time.

Definition at line 130 of file glc_rep.h.

Referenced by GLC_3dxmlToWorld::createReferenceRep(), and GLC_3dxmlToWorld::loadCurrentExtRep().

void GLC_Rep::setName ( const QString &  name  )  [inline]
virtual int GLC_Rep::type (  )  const [pure virtual]

Return the type of representation.

Implemented in GLC_3DRep.

virtual bool GLC_Rep::unload (  )  [pure virtual]

UnLoad the representation.

Implemented in GLC_3DRep.

Referenced by GLC_StructOccurence::unloadRepresentation().


Member Data Documentation

QDateTime* GLC_Rep::m_pDateTime [private]

The Date and time of the rep.

Definition at line 163 of file glc_rep.h.

Referenced by clear(), and operator=().

QString* GLC_Rep::m_pFileName [private]

The File Name of this representation.

Definition at line 157 of file glc_rep.h.

Referenced by clear(), and operator=().

bool* GLC_Rep::m_pIsLoaded [protected]

Flag to know if the representation has been loaded.

Definition at line 146 of file glc_rep.h.

Referenced by clear(), GLC_3DRep::load(), operator=(), and GLC_3DRep::unload().

QString* GLC_Rep::m_pName [private]

The Name of the rep.

Definition at line 160 of file glc_rep.h.

Referenced by clear(), and operator=().

Number of this representation.

Definition at line 154 of file glc_rep.h.

Referenced by clear(), operator=(), and operator==().


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

SourceForge.net Logo

©2005-2010 Laurent Ribon