LibPkg
Public Member Functions | Friends | List of all members
pkg::control::key_type Class Reference

The key type. More...

#include <control.h>

Inheritance diagram for pkg::control::key_type:

Public Member Functions

 key_type (const string &value)
 Construct key from string. More...
 
 key_type (const char *value)
 Construct key from C-string. More...
 
int priority () const
 Get priority. More...
 

Friends

class control
 

Detailed Description

The key type.

This is a std::string, augmented to include a priority.

Note that the standard comparison operators treat this class as a std::string, so are case sensitive and do not take account of the priority. To obtain the modified sort order, use control::cmp_key.

Constructor & Destructor Documentation

pkg::control::key_type::key_type ( const string &  value)

Construct key from string.

Parameters
valuethe key value
pkg::control::key_type::key_type ( const char *  value)

Construct key from C-string.

Parameters
valuethe key value

Member Function Documentation

int pkg::control::key_type::priority ( ) const
inline

Get priority.

Returns
the priority

Friends And Related Function Documentation

friend class control
friend

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

Reference Manual LibPkg Version 0.6.1 (28 Jan 2015)