paludis Version 3.0.2
The one true package mangler
paludis::Hook Class Reference

#include <hook.hh>

Classes

class  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.

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

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

Detailed Description

Represents the data for a hook call.

See also
Environment::perform_hook

Member Function Documentation

◆ get()

std::string paludis::Hook::get ( const std::string & key) const

Get data from the hook.

References PALUDIS_ATTRIBUTE.

◆ name()

std::string paludis::Hook::name ( ) const

Our name.

References name(), and PALUDIS_ATTRIBUTE.

Referenced by name().

◆ operator()()

Hook paludis::Hook::operator() ( const std::string & key,
const std::string & value ) const

Add data to the hook.

References PALUDIS_ATTRIBUTE.


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