NL3D::CAsyncFileManager3D::CIGLoadUser Class Reference

Inheritance diagram for NL3D::CAsyncFileManager3D::CIGLoadUser:

NLMISC::IRunnable

Public Member Functions

 CIGLoadUser (const std::string &meshName, UInstanceGroup **ppIG)
void getName (std::string &result) const
void run (void)

Private Attributes

std::string _IGName
UInstanceGroup ** _ppIG

Constructor & Destructor Documentation

NL3D::CAsyncFileManager3D::CIGLoadUser::CIGLoadUser const std::string &  meshName,
UInstanceGroup **  ppIG
 

Definition at line 413 of file async_file_manager_3d.cpp.

00414 {
00415         _IGName = IGName;
00416         _ppIG = ppIG;
00417 }


Member Function Documentation

void NL3D::CAsyncFileManager3D::CIGLoadUser::getName std::string &  result  )  const [virtual]
 

Reimplemented from NLMISC::IRunnable.

Definition at line 451 of file async_file_manager_3d.cpp.

00452 {
00453         result = "LoadIGUser(" + _IGName + ")";
00454 }

void NL3D::CAsyncFileManager3D::CIGLoadUser::run void   )  [virtual]
 

Implements NLMISC::IRunnable.

Definition at line 420 of file async_file_manager_3d.cpp.

References NL3D_MEM_IG, and nlwarning.

00421 {
00422         NL3D_MEM_IG
00423         CInstanceGroupUser *pIG = new CInstanceGroupUser();
00424         try
00425         {
00426                 if (pIG->init (_IGName))
00427                 {               
00428                         *_ppIG = pIG;
00429                 }
00430                 else
00431                 {
00432                         nlwarning ("Couldn't init '%s'", _IGName.c_str());
00433                         delete pIG;
00434                         *_ppIG = (UInstanceGroup*)-1;
00435                         delete this;
00436                         return;
00437                 }
00438         }
00439         catch(EPathNotFound &)
00440         {
00441                 nlwarning ("Couldn't load '%s'", _IGName.c_str());
00442                 delete pIG;
00443                 *_ppIG = (UInstanceGroup*)-1;
00444                 delete this;
00445                 return;
00446         }
00447         delete this;
00448 }


Field Documentation

std::string NL3D::CAsyncFileManager3D::CIGLoadUser::_IGName [private]
 

Definition at line 117 of file async_file_manager_3d.h.

UInstanceGroup** NL3D::CAsyncFileManager3D::CIGLoadUser::_ppIG [private]
 

Definition at line 118 of file async_file_manager_3d.h.


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