$search

utilmm::pkgconfig Class Reference

#include <pkgconfig.hh>

List of all members.

Public Types

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

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

Enumerator:
All 
Path 
Other 
Static 
Libraries 

Definition at line 35 of file pkgconfig.hh.


Constructor & Destructor Documentation

pkgconfig::pkgconfig ( string const &  name  ) 

Creates a package description file.

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

Definition at line 11 of file pkgconfig.cc.

pkgconfig::~pkgconfig (  ) 

Definition at line 18 of file pkgconfig.cc.


Member Function Documentation

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

Get compile flags for the given mode

Definition at line 63 of file pkgconfig.cc.

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

Checks if the given package is available

Definition at line 46 of file pkgconfig.cc.

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 pkgconfig.cc.

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

Get link flags for the given mode

Definition at line 67 of file pkgconfig.cc.

string pkgconfig::name (  )  const

The package name

Definition at line 43 of file pkgconfig.cc.

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

Definition at line 20 of file pkgconfig.cc.

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 pkgconfig.cc.

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

Run the given process object and returns its standard output

Definition at line 87 of file pkgconfig.cc.

string pkgconfig::version (  )  const

The package version

Definition at line 44 of file pkgconfig.cc.


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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Mar 1 16:28:52 2013