paludis  Version 2.6.0
Public Member Functions | Friends | List of all members
paludis::Hook Class Reference

#include <hook.hh>

+ Inheritance diagram for paludis::Hook:

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
 

Basic operations

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

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))
 

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: