NL3D::EBadBind Struct Reference

#include <landscape.h>

Inheritance diagram for NL3D::EBadBind:

NLMISC::Exception

Detailed Description

A landscape bind exception.
Author:
Lionel Berenguier

Nevrax France

Date:
2001

Definition at line 93 of file landscape.h.

Public Member Functions

 EBadBind ()
virtual const char * what () const throw ()
 ~EBadBind () throw ()

Data Fields

std::list< CBindErrorBindErrors

Protected Attributes

std::string _Reason

Private Attributes

std::string _Output


Constructor & Destructor Documentation

NL3D::EBadBind::EBadBind  )  [inline]
 

Definition at line 111 of file landscape.h.

00111 {}

NL3D::EBadBind::~EBadBind  )  throw () [inline]
 

Definition at line 112 of file landscape.h.

00112 {}


Member Function Documentation

const char * NL3D::EBadBind::what  )  const throw () [virtual]
 

Reimplemented from NLMISC::Exception.

Definition at line 154 of file landscape.cpp.

References sint, x, and y.

00155 {
00156         sint                    numErr= 0;
00157         const   sint    NErrByLines= 4;
00158 
00159         _Output= "Landscape Bind Error in (3DSMax indices!! (+1) ): ";
00160 
00161         std::list<CBindError>::const_iterator           it;
00162         for(it= BindErrors.begin();it!=BindErrors.end(); it++, numErr++)
00163         {
00164                 char    tmp[256];
00165                 sint    x= it->ZoneId & 255;
00166                 sint    y= it->ZoneId >> 8;
00167                 sprintf(tmp, "zone%3d_%c%c.patch%3d;   ", y+1, (char)('A'+(x/26)), (char)('A'+(x%26)), it->PatchId+1);
00168                 if( (numErr%NErrByLines) == 0)
00169                         _Output+= "\n";
00170                 _Output+= tmp;
00171         }
00172         return _Output.c_str(); 
00173 }


Field Documentation

std::string NL3D::EBadBind::_Output [mutable, private]
 

Definition at line 96 of file landscape.h.

std::string NLMISC::Exception::_Reason [protected, inherited]
 

Definition at line 244 of file common.h.

Referenced by NLMISC::Exception::Exception().

std::list<CBindError> NL3D::EBadBind::BindErrors
 

Definition at line 108 of file landscape.h.

Referenced by NL3D::CLandscape::checkBinds(), and NL3D::CLandscape::checkZoneBinds().


The documentation for this struct was generated from the following files:
Generated on Tue Mar 16 08:36:50 2004 for NeL by doxygen 1.3.6