utilmm::pkgconfig Class Reference

#include <pkgconfig.hh>

List of all members.

Public Types

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

Public Member Functions

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

Static Public Member Functions

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

Private Types

typedef std::string string
typedef std::string string

Private Member Functions

string run (string const &argument) const
string run (string const &argument) const

Static Private Member Functions

static string run (process &prs)
static string run (process &prs)

Private Attributes

string m_name

Detailed Description

Definition at line 13 of file install/include/utilmm/configfile/pkgconfig.hh.


Member Typedef Documentation

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

Definition at line 15 of file utilmm/configfile/pkgconfig.hh.

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

Member Enumeration Documentation

Enumerator:
All 
Path 
Other 
Static 
Libraries 
All 
Path 
Other 
Static 
Libraries 

Definition at line 35 of file utilmm/configfile/pkgconfig.hh.

Enumerator:
All 
Path 
Other 
Static 
Libraries 
All 
Path 
Other 
Static 
Libraries 

Definition at line 35 of file install/include/utilmm/configfile/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.

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

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

Get compile flags for the given mode

Definition at line 63 of file pkgconfig.cc.

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

Checks if the given package is available

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

Checks if the given package is available

Definition at line 46 of file pkgconfig.cc.

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

Get a variable defined in this package description

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

Get link flags for the given mode

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

Get link flags for the given mode

Definition at line 67 of file pkgconfig.cc.

string utilmm::pkgconfig::name (  )  const

The package name

string pkgconfig::name (  )  const

The package name

Definition at line 43 of file pkgconfig.cc.

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

Definition at line 20 of file pkgconfig.cc.

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

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

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

Run the given process object and returns its standard output

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 utilmm::pkgconfig::version (  )  const

The package version

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 install/include/utilmm/configfile/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 Jan 11 10:07:42 2013