Previous: library iteration functions, Up: The library class



5.1.2.4 Other functions
— Function: bool library::good (void) const;

This function returns true if the library is open and ready to read methods, and false otherwise.

— Function: virtual method library::load (const char* name, int stage) const;

This function loads a method from the library by name. Note that the names under which methods are stored in a library depend entirely on the type of library.

If no such method is found, if exceptions are enabled, an exception of class library_base::invalid_name will be thrown; otherwise, the method returned will be an empty method with the name "Not Found".

— Function: virtual int library::dir (list<string>& result) const;

This function returns a list of the names of the methods in the library.

— Function: virtual int library::mdir (list<method>& result) const;

This function loads all the methods in the library and returns them as a list.