RTEMS Linker  0.0.1
RTEMS Tools Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pkgconfig::package Class Reference

#include <pkgconfig.h>

Public Types

typedef std::map< std::string,
std::string > 
table
 

Public Member Functions

 package ()
 
void load (const std::string &name)
 
bool get (const std::string &label, std::string &result)
 

Detailed Description

A simple class to parse a pkgconfig file as used in RTEMS. The RTEMS use is simple and basically provides a simplified method to manage the various flags used to build and link modules for a specific BSP.

Member Typedef Documentation

typedef std::map< std::string, std::string > pkgconfig::package::table

The type of defines and fields parsed from a package config file.

Constructor & Destructor Documentation

pkgconfig::package::package ( void  )

Member Function Documentation

bool pkgconfig::package::get ( const std::string &  label,
std::string &  result 
)

Get a field from the package.

Parameters
labelThe label to search for.
resultThe result of the search.
Return values
trueThe field was found.
falseThe field was not found.
void pkgconfig::package::load ( const std::string &  name)

Load a package configuration file.

Parameters
nameThe file name of the package.

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