Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes
utilmm::pkgconfig Class Reference

#include <pkgconfig.hh>

List of all members.

Public Types

enum  Modes {
  All, Path, Other, Static,

Public Member Functions

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

Static Public Member Functions

static bool exists (string const &name)
static std::list< stringpackages ()

Private Types

typedef std::string string

Private Member Functions

string run (string const &argument) const

Static Private Member Functions

static string run (process &prs)

Private Attributes

string m_name

Detailed Description

Definition at line 13 of file pkgconfig.hh.

Member Typedef Documentation

typedef std::string utilmm::pkgconfig::string [private]

Definition at line 15 of file pkgconfig.hh.

Member Enumeration Documentation


Definition at line 35 of file pkgconfig.hh.

Constructor & Destructor Documentation

pkgconfig::pkgconfig ( string const &  name)

Creates a package description file.

not_found(name)if the package is not available

Definition at line 11 of file

Definition at line 18 of file

Member Function Documentation

Get compile flags for the given mode

Definition at line 63 of file

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

Checks if the given package is available

Definition at line 46 of file

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

Get a variable defined in this package description

Definition at line 55 of file

Get link flags for the given mode

Definition at line 67 of file

The package name

Definition at line 43 of file

std::list< string > pkgconfig::packages ( ) [static]

Definition at line 20 of file

string pkgconfig::run ( process prs) [static, private]

Run the given process object and returns its standard output

Definition at line 87 of file

string pkgconfig::run ( string const &  argument) const [private]

Get the value returned by pkgconfig with the given argument applied to the current package

Definition at line 74 of file

The package version

Definition at line 44 of file

Member Data Documentation

The package name

Definition at line 48 of file pkgconfig.hh.

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

Author(s): Sylvain Joyeux/
autogenerated on Thu Jan 2 2014 11:38:31