VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes
makVrf::DtSurfaceCharacteristicMap Class Reference

Classes

class  Entry

Public Member Functions

 DtSurfaceCharacteristicMap ()
 default constructor.
virtual ~DtSurfaceCharacteristicMap ()
 destructor
virtual bool init (const DtFilename filename, bool displayWarning=false)
 Initialize the metafile. Calls createSurface().
virtual bool characteristicsFromString (const char *str, unsigned int &characteristics, int &position, int &matchClass)
 Set characteristics based on a string.
virtual void printResults (const char *str, unsigned int characteristics, const char *additionalInformation=0)

Protected Types

typedef boost::unordered_map
< DtString, boost::shared_ptr
< Entry > > 
MatchMap
typedef std::vector
< boost::shared_ptr< Entry > > 
EntryList

Protected Member Functions

virtual bool get (std::istream &stream)
 get data from a stream
virtual bool processToken (std::istream &stream, const DtString &token)
 identifies a token or passes token the parent class.

Protected Attributes

MatchMap myExactMatches
EntryList myEntries
int myCurrentPosition

Static Protected Attributes

static const DtString theMatchString
static const DtString theRegExprMatchString

Private Attributes

std::set< std::string > myPrintedMessages
 This is here to prevent error/status messages from streaming out endlessly.

Member Typedef Documentation

typedef boost::unordered_map<DtString, boost::shared_ptr<Entry> > makVrf::DtSurfaceCharacteristicMap::MatchMap
protected
typedef std::vector<boost::shared_ptr<Entry> > makVrf::DtSurfaceCharacteristicMap::EntryList
protected

Constructor & Destructor Documentation

makVrf::DtSurfaceCharacteristicMap::DtSurfaceCharacteristicMap ( )

default constructor.

virtual makVrf::DtSurfaceCharacteristicMap::~DtSurfaceCharacteristicMap ( )
virtual

destructor

Member Function Documentation

virtual bool makVrf::DtSurfaceCharacteristicMap::init ( const DtFilename  filename,
bool  displayWarning = false 
)
virtual

Initialize the metafile. Calls createSurface().

virtual bool makVrf::DtSurfaceCharacteristicMap::characteristicsFromString ( const char str,
unsigned int characteristics,
int position,
int matchClass 
)
virtual

Set characteristics based on a string.

virtual void makVrf::DtSurfaceCharacteristicMap::printResults ( const char str,
unsigned int  characteristics,
const char additionalInformation = 0 
)
virtual
virtual bool makVrf::DtSurfaceCharacteristicMap::get ( std::istream &  stream)
protectedvirtual

get data from a stream

virtual bool makVrf::DtSurfaceCharacteristicMap::processToken ( std::istream &  stream,
const DtString token 
)
protectedvirtual

identifies a token or passes token the parent class.

Member Data Documentation

MatchMap makVrf::DtSurfaceCharacteristicMap::myExactMatches
protected
EntryList makVrf::DtSurfaceCharacteristicMap::myEntries
protected
int makVrf::DtSurfaceCharacteristicMap::myCurrentPosition
protected
const DtString makVrf::DtSurfaceCharacteristicMap::theMatchString
staticprotected
const DtString makVrf::DtSurfaceCharacteristicMap::theRegExprMatchString
staticprotected
std::set<std::string> makVrf::DtSurfaceCharacteristicMap::myPrintedMessages
private

This is here to prevent error/status messages from streaming out endlessly.

Should probably be changed to a logging class that is a member of the class, that explicitly has the "only output once" logic held internally. NOTE: This is used in the characteristicsFromString function.

See Also
characteristicsFromString

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)