Util--  1.1
Public Types | Public Member Functions | Static Public Member Functions | List of all members
utilmm::pkgconfig Class Reference

#include <utilmm/configfile/pkgconfig.hh>

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)
 
static std::list< string > packages ()
 

Member Enumeration Documentation

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::compiler ( Modes  mode = pkgconfig::All) const

Get compile flags for the given mode

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::linker ( Modes  mode = pkgconfig::All) const

Get link flags for the given mode

string utilmm::pkgconfig::name ( ) const

The package name

static std::list<string> utilmm::pkgconfig::packages ( )
static
string utilmm::pkgconfig::version ( ) const

The package version


The documentation for this class was generated from the following file:

Generated on Mon Oct 8 2018 08:38:45 for Util-- by doxygen 1.8.11
SourceForge.net Project Page