Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Loader Class Reference

#include <loader.h>

Inheritance diagram for Loader:

AsyncUtility List of all members.

Public Member Functions

INLINE void add_file (const Filename &file, LoaderFileType *type)

Private Types

typedef pvector< ConsiderFileFiles
typedef TokenBoard< LoaderTokenLoaderTokenBoard

Private Member Functions

INLINE Results (const Results &copy)
INLINE void operator= (const Results &copy)
INLINE ~Results ()
INLINE void clear ()
INLINE int get_num_files () const
INLINE const Filename & get_file (int n) const
INLINE LoaderFileTypeget_file_type (int n) const
 Loader ()
 ~Loader ()
int find_all_files (const Filename &filename, const DSearchPath &search_path, Results &results) const
INLINE PT (PandaNode) load_sync(const Filename &filename
uint request_load (const string &event_name, const Filename &filename, bool search=true)
bool check_load (uint id)
 PT (PandaNode) fetch_load(uint id)
virtual bool process_request (void)
 PT (PandaNode) load_file(const Filename &filename

Static Private Member Functions

void load_file_types ()

Private Attributes

PUBLISHED __pad0__: class EXPCL_PANDA Results { PUBLISHED: INLINE Results()
Files _files
INLINE bool search = true) const
bool search const
LoaderTokenBoard_token_board

Static Private Attributes

bool _file_types_loaded = false

Member Typedef Documentation

typedef pvector<ConsiderFile> Loader::Files [private]
 

Definition at line 64 of file loader.h.

typedef TokenBoard<LoaderToken> Loader::LoaderTokenBoard [private]
 

Definition at line 87 of file loader.h.


Constructor & Destructor Documentation

INLINE Loader::~Results  )  [private]
 

Loader::Loader  )  [private]
 

Definition at line 71 of file loader.cxx.

References _token_board.

Loader::~Loader  )  [private]
 

Definition at line 81 of file loader.cxx.

References _token_board, and AsyncUtility::destroy_thread().


Member Function Documentation

INLINE void Loader::add_file const Filename &  file,
LoaderFileType type
 

bool Loader::check_load uint  id  )  [private]
 

Definition at line 277 of file loader.cxx.

References _token_board, id, and TokenBoard< LoaderToken >::is_done_token().

Referenced by event_c().

INLINE void Loader::clear  )  [private]
 

int Loader::find_all_files const Filename &  filename,
const DSearchPath &  search_path,
Results &  results
const [private]
 

Definition at line 95 of file loader.cxx.

References _file_types_loaded, VirtualFileSystem::exists(), VirtualFileSystem::find_all_files(), VirtualFileSystem::get_global_ptr(), LoaderFileTypeRegistry::get_num_types(), LoaderFileTypeRegistry::get_ptr(), LoaderFileTypeRegistry::get_type(), LoaderFileTypeRegistry::get_type_from_extension(), load_file_types(), NULL, t, and type.

INLINE const Filename& Loader::get_file int  n  )  const [private]
 

INLINE LoaderFileType* Loader::get_file_type int  n  )  const [private]
 

INLINE int Loader::get_num_files  )  const [private]
 

void Loader::load_file_types  )  [static, private]
 

Definition at line 309 of file loader.cxx.

References _file_types_loaded, load_file_type, and NULL.

Referenced by find_all_files(), and request_load().

INLINE void Loader::operator= const Results &  copy  )  [private]
 

bool Loader::process_request void   )  [private, virtual]
 

Implements AsyncUtility.

Definition at line 335 of file loader.cxx.

References TokenBoard< LoaderToken >::_done, _token_board, TokenBoard< LoaderToken >::_waiting, NULL, PT(), and throw_event().

Referenced by request_load().

Loader::PT PandaNode   )  const [private]
 

Loader::PT PandaNode   )  [private]
 

INLINE Loader::PT PandaNode   )  const [private]
 

Referenced by process_request(), and request_load().

uint Loader::request_load const string &  event_name,
const Filename &  filename,
bool  search = true
[private]
 

Definition at line 208 of file loader.cxx.

References _file_types_loaded, AsyncUtility::_next_token, AsyncUtility::_threaded, _token_board, TokenBoard< LoaderToken >::_waiting, AsyncUtility::create_thread(), load_file_types(), process_request(), PT(), and search().

Referenced by event_p().

INLINE Loader::Results const Results &  copy  )  [private]
 


Member Data Documentation

PUBLISHED Loader::__pad0__ [private]
 

Reimplemented from AsyncUtility.

Definition at line 50 of file loader.h.

bool Loader::_file_types_loaded = false [static, private]
 

Definition at line 40 of file loader.cxx.

Referenced by find_all_files(), load_file_types(), and request_load().

Files Loader::_files [private]
 

Definition at line 65 of file loader.h.

LoaderTokenBoard* Loader::_token_board [private]
 

Definition at line 88 of file loader.h.

Referenced by check_load(), Loader(), process_request(), request_load(), and ~Loader().

bool search Loader::const [private]
 

Definition at line 85 of file loader.h.

INLINE bool Loader::search = true) const [private]
 

Definition at line 74 of file loader.h.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:42 2003 for Panda by doxygen1.3