NLGEORGES::CFormDfn::CEntry Class Reference

#include <form_dfn.h>


Public Member Functions

 CEntry ()
bool getArrayFlag () const
const std::string & getDefault () const
const CFormDfngetDfnPtr () const
CFormDfngetDfnPtr ()
const std::string & getFilename () const
const std::string & getFilenameExt () const
const std::string & getName () const
TEntryType getType () const
const CTypegetTypePtr () const
CTypegetTypePtr ()
void setArrayFlag (bool flag)
void setDefault (const char *def)
void setDfn (CFormLoader &loader, const char *filename)
void setDfnPointer ()
void setFilename (const char *def)
void setFilenameExt (const char *ext)
void setName (const char *name)
void setType (CFormLoader &loader, const char *filename)

Private Attributes

bool Array
std::string Default
NLMISC::CSmartPtr< CFormDfnDfn
std::string Filename
std::string FilenameExt
std::string Name
NLMISC::CSmartPtr< CTypeType
TEntryType TypeElement

Friends

class CForm
class CFormDfn
class CFormElm
class CFormElmStruct
bool convertDfnFile (const char *oldFileName, const char *newFileName)
class CType


Constructor & Destructor Documentation

NLGEORGES::CFormDfn::CEntry::CEntry  )  [inline]
 

Definition at line 75 of file form_dfn.h.

References FilenameExt, and TypeElement.

00076                 {
00077                         TypeElement = EntryType;
00078                         FilenameExt = "*.*";
00079                 }


Member Function Documentation

bool NLGEORGES::CFormDfn::CEntry::getArrayFlag  )  const
 

Definition at line 532 of file form_dfn.cpp.

Referenced by NLGEORGES::CFormElm::getIternalNodeByName(), and NLGEORGES::CFormDfn::isAnArrayEntryByName().

00533 {
00534         return Array;
00535 }

const std::string & NLGEORGES::CFormDfn::CEntry::getDefault  )  const
 

Definition at line 511 of file form_dfn.cpp.

References Default.

00512 {
00513         return Default;
00514 }

const CFormDfn * NLGEORGES::CFormDfn::CEntry::getDfnPtr  )  const
 

Definition at line 581 of file form_dfn.cpp.

References Dfn.

00582 {
00583         return Dfn;
00584 }

CFormDfn * NLGEORGES::CFormDfn::CEntry::getDfnPtr  ) 
 

Definition at line 567 of file form_dfn.cpp.

References Dfn.

Referenced by NLGEORGES::CFormDfn::getEntryDfnByName(), and NLGEORGES::CFormElm::getIternalNodeByName().

00568 {
00569         return Dfn;
00570 }

const std::string & NLGEORGES::CFormDfn::CEntry::getFilename  )  const
 

Definition at line 546 of file form_dfn.cpp.

References Filename.

00547 {
00548         return Filename;
00549 }

const std::string & NLGEORGES::CFormDfn::CEntry::getFilenameExt  )  const
 

Definition at line 834 of file form_dfn.cpp.

References FilenameExt.

00835 {
00836         return FilenameExt;
00837 }

const std::string & NLGEORGES::CFormDfn::CEntry::getName  )  const
 

Definition at line 497 of file form_dfn.cpp.

Referenced by NLGEORGES::CFormDfn::getEntryByName().

00498 {
00499         return Name;
00500 }

UFormDfn::TEntryType NLGEORGES::CFormDfn::CEntry::getType  )  const
 

Definition at line 539 of file form_dfn.cpp.

References TypeElement.

Referenced by NLGEORGES::CFormElm::getIternalNodeByName().

00540 {
00541         return TypeElement;
00542 }

const CType * NLGEORGES::CFormDfn::CEntry::getTypePtr  )  const
 

Definition at line 574 of file form_dfn.cpp.

00575 {
00576         return Type;
00577 }

CType * NLGEORGES::CFormDfn::CEntry::getTypePtr  ) 
 

Definition at line 560 of file form_dfn.cpp.

Referenced by NLGEORGES::CFormElm::getIternalNodeByName().

00561 {
00562         return Type;
00563 }

void NLGEORGES::CFormDfn::CEntry::setArrayFlag bool  flag  ) 
 

Definition at line 525 of file form_dfn.cpp.

00526 {
00527         Array = flag;
00528 }

void NLGEORGES::CFormDfn::CEntry::setDefault const char *  def  ) 
 

Definition at line 518 of file form_dfn.cpp.

References Default.

00519 {
00520         Default = def;
00521 }

void NLGEORGES::CFormDfn::CEntry::setDfn CFormLoader loader,
const char *  filename
 

Definition at line 477 of file form_dfn.cpp.

References Dfn, Filename, NLGEORGES::CFormLoader::loadFormDfn(), and TypeElement.

00478 {
00479         TypeElement = EntryDfn;
00480         Filename = filename;
00481         Type = NULL;
00482         Dfn = loader.loadFormDfn (filename, false);
00483 }

void NLGEORGES::CFormDfn::CEntry::setDfnPointer  ) 
 

Definition at line 487 of file form_dfn.cpp.

References Dfn, Filename, and TypeElement.

00488 {
00489         TypeElement = EntryVirtualDfn;
00490         Filename = "";
00491         Type = NULL;
00492         Dfn = NULL;
00493 }

void NLGEORGES::CFormDfn::CEntry::setFilename const char *  def  ) 
 

Definition at line 553 of file form_dfn.cpp.

References Filename.

00554 {
00555         Filename = def;
00556 }

void NLGEORGES::CFormDfn::CEntry::setFilenameExt const char *  ext  ) 
 

Definition at line 841 of file form_dfn.cpp.

References FilenameExt.

00842 {
00843         FilenameExt = ext;
00844 }

void NLGEORGES::CFormDfn::CEntry::setName const char *  name  ) 
 

Definition at line 504 of file form_dfn.cpp.

00505 {
00506         Name = name;
00507 }

void NLGEORGES::CFormDfn::CEntry::setType CFormLoader loader,
const char *  filename
 

Definition at line 467 of file form_dfn.cpp.

References Dfn, Filename, NLGEORGES::CFormLoader::loadType(), and TypeElement.

00468 {
00469         TypeElement = EntryType;
00470         Dfn = NULL;
00471         Filename = filename;
00472         Type = loader.loadType (filename);
00473 }


Friends And Related Function Documentation

friend class CForm [friend]
 

Definition at line 68 of file form_dfn.h.

friend class CFormDfn [friend]
 

Definition at line 70 of file form_dfn.h.

friend class CFormElm [friend]
 

Definition at line 69 of file form_dfn.h.

friend class CFormElmStruct [friend]
 

Definition at line 71 of file form_dfn.h.

bool convertDfnFile const char *  oldFileName,
const char *  newFileName
[friend]
 

friend class CType [friend]
 

Definition at line 67 of file form_dfn.h.


Field Documentation

bool NLGEORGES::CFormDfn::CEntry::Array [private]
 

Definition at line 143 of file form_dfn.h.

std::string NLGEORGES::CFormDfn::CEntry::Default [private]
 

Definition at line 149 of file form_dfn.h.

Referenced by getDefault(), and setDefault().

NLMISC::CSmartPtr<CFormDfn> NLGEORGES::CFormDfn::CEntry::Dfn [private]
 

Definition at line 158 of file form_dfn.h.

Referenced by getDfnPtr(), setDfn(), setDfnPointer(), and setType().

std::string NLGEORGES::CFormDfn::CEntry::Filename [private]
 

Definition at line 146 of file form_dfn.h.

Referenced by getFilename(), setDfn(), setDfnPointer(), setFilename(), and setType().

std::string NLGEORGES::CFormDfn::CEntry::FilenameExt [private]
 

Definition at line 152 of file form_dfn.h.

Referenced by CEntry(), getFilenameExt(), and setFilenameExt().

std::string NLGEORGES::CFormDfn::CEntry::Name [private]
 

Definition at line 137 of file form_dfn.h.

NLMISC::CSmartPtr<CType> NLGEORGES::CFormDfn::CEntry::Type [private]
 

Definition at line 155 of file form_dfn.h.

TEntryType NLGEORGES::CFormDfn::CEntry::TypeElement [private]
 

Definition at line 140 of file form_dfn.h.

Referenced by CEntry(), getType(), setDfn(), setDfnPointer(), and setType().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 12:41:06 2004 for NeL by doxygen 1.3.6