paludis::Hook Class Reference
[HooksHooks]

#include <hook.hh>

Inheritance diagram for paludis::Hook:

paludis::PrivateImplementationPattern< C_ >

List of all members.

Basic operations

HookOutputDestination output_dest
 Hook (const std::string &name)
 Hook (const Hook &)
 ~Hook ()

Iterate over environment data

typedef WrappedForwardIterator
< ConstIteratorTag, const
std::pair< const std::string,
std::string > > 
ConstIterator
ConstIterator begin () const PALUDIS_ATTRIBUTE((warn_unused_result))
ConstIterator end () const PALUDIS_ATTRIBUTE((warn_unused_result))

Basic operations

 AllowedOutputValues ()
 AllowedOutputValues (const AllowedOutputValues &other)
 ~AllowedOutputValues ()

Public Member Functions

Hook operator() (const std::string &key, const std::string &value) const PALUDIS_ATTRIBUTE((warn_unused_result))
 Add data to the hook.
std::string get (const std::string &key) const PALUDIS_ATTRIBUTE((warn_unused_result))
 Get data from the hook.
Hook grab_output (const AllowedOutputValues &av)
bool validate_value (const std::string &value) const
std::string name () const PALUDIS_ATTRIBUTE((warn_unused_result))
 Our name.
AllowedOutputValues operator() (const std::string &v) const PALUDIS_ATTRIBUTE((warn_unused_result))
 Add a new allowed value.

Friends

class Hook


Detailed Description

Represents the data for a hook call.

See also:
Environment::perform_hook
Hooks with grabbed output can specify that only certain output values are allowed.

Since:
0.26

The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:10 2009 for paludis by  doxygen 1.5.4