utilmm::pkgconfig Class Reference

#include <utilmm/configfile/pkgconfig.hh>

List of all members.

Public Types

enum  Modes {
  All, Path, Other, Static,
  Libraries
}

Public Member Functions

 pkgconfig (string const &name)
 ~pkgconfig ()
string name () const
string version () const
string get (string const &var, string const &defval=string()) const
string compiler (Modes mode=pkgconfig::All) const
string linker (Modes mode=pkgconfig::All) const

Static Public Member Functions

static bool exists (string const &name)


Member Enumeration Documentation

enum utilmm::pkgconfig::Modes

Enumerator:
All 
Path 
Other 
Static 
Libraries 


Constructor & Destructor Documentation

utilmm::pkgconfig::pkgconfig ( string const &  name  ) 

Creates a package description file.

Exceptions:
not_found(name) if the package is not available

utilmm::pkgconfig::~pkgconfig (  ) 


Member Function Documentation

string utilmm::pkgconfig::name (  )  const

The package name

string utilmm::pkgconfig::version (  )  const

The package version

static bool utilmm::pkgconfig::exists ( string const &  name  )  [static]

Checks if the given package is available

string utilmm::pkgconfig::get ( string const &  var,
string const &  defval = string() 
) const

Get a variable defined in this package description

string utilmm::pkgconfig::compiler ( Modes  mode = pkgconfig::All  )  const

Get compile flags for the given mode

string utilmm::pkgconfig::linker ( Modes  mode = pkgconfig::All  )  const

Get link flags for the given mode


The documentation for this class was generated from the following file:
Generated on Tue Feb 19 10:51:01 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page