Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class library_info

boost::dll::library_info — Class that is capable of extracting different information from a library or binary file. Currently understands ELF, MACH-O and PE formats on all the platforms.

Synopsis

// In header: <boost/dll/library_info.hpp>


class library_info : private  {
public:
  // construct/copy/destruct
  (,  = );

  // public member functions
   ();
   ();
   ();
   ();
};

Description

library_info public construct/copy/destruct

  1. ( library_path, 
                           throw_if_not_native_format = );

    Opens file with specified path and prepares for information extraction.

    Parameters:

    library_path

    Path to the binary file from which the info must be extracted.

    throw_if_not_native_format

    Throw an exception if this file format is not supported by OS.

library_info public member functions

  1.  ();

    Returns:

    List of sections that exist in binary file.

  2.  ();

    Returns:

    List of all the exportable symbols from all the sections that exist in binary file.

  3.  ( section_name);

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    Parameters:

    section_name

    Name of the section from which symbol names must be returned.

    Returns:

    List of symbols from the specified section.

  4.  ( section_name);

PrevUpHomeNext