libzypp  15.28.6
zypp::PluginFrame::Impl Struct Reference

PluginFrame implementation. More...

Public Types

typedef std::pair
< HeaderListIterator,
HeaderListIterator
constKeyRange
 
typedef std::pair
< HeaderList::iterator,
HeaderList::iterator > 
KeyRange
 

Public Member Functions

 Impl ()
 
 Impl (const std::string &command_r)
 
 Impl (const std::string &command_r, const std::string &body_r)
 
 Impl (const std::string &command_r, HeaderInitializerList contents_r)
 
 Impl (const std::string &command_r, const std::string &body_r, HeaderInitializerList contents_r)
 
 Impl (std::istream &stream_r)
 
bool empty () const
 
const std::string & command () const
 
void setCommand (const std::string &command_r)
 
const std::string & body () const
 
std::string & bodyRef ()
 
void setBody (const std::string &body_r)
 
HeaderListheaderList ()
 
const HeaderListheaderList () const
 
const std::string & getHeader (const std::string &key_r) const
 
const std::string & getHeader (const std::string &key_r, const std::string &default_r) const
 
const std::string & getHeaderNT (const std::string &key_r, const std::string &default_r) const
 
HeaderList::value_type mkHeaderPair (const std::string &key_r, const std::string &value_r)
 
void setHeader (const std::string &key_r, const std::string &value_r)
 
void addHeader (const std::string &key_r, const std::string &value_r)
 
void addHeader (HeaderInitializerList contents_r)
 
void clearHeader (const std::string &key_r)
 
std::ostream & writeTo (std::ostream &stream_r) const
 

Static Public Member Functions

static shared_ptr< Implnullimpl ()
 Offer default Impl. More...
 

Private Member Functions

Implclone () const
 clone for RWCOW_pointer More...
 

Private Attributes

std::string _command
 
std::string _body
 
HeaderList _header
 

Friends

ImplrwcowClone (const Impl *rhs)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const PluginFrame::Impl &obj)
 

Detailed Description

PluginFrame implementation.

Definition at line 32 of file PluginFrame.cc.

Member Typedef Documentation

typedef std::pair<HeaderList::iterator,HeaderList::iterator> zypp::PluginFrame::Impl::KeyRange

Definition at line 79 of file PluginFrame.cc.

Constructor & Destructor Documentation

zypp::PluginFrame::Impl::Impl ( )
inline

Definition at line 35 of file PluginFrame.cc.

zypp::PluginFrame::Impl::Impl ( const std::string &  command_r)
inline

Definition at line 38 of file PluginFrame.cc.

zypp::PluginFrame::Impl::Impl ( const std::string &  command_r,
const std::string &  body_r 
)
inline

Definition at line 41 of file PluginFrame.cc.

zypp::PluginFrame::Impl::Impl ( const std::string &  command_r,
HeaderInitializerList  contents_r 
)
inline

Definition at line 45 of file PluginFrame.cc.

zypp::PluginFrame::Impl::Impl ( const std::string &  command_r,
const std::string &  body_r,
HeaderInitializerList  contents_r 
)
inline

Definition at line 48 of file PluginFrame.cc.

zypp::PluginFrame::Impl::Impl ( std::istream &  stream_r)

Definition at line 175 of file PluginFrame.cc.

Member Function Documentation

bool zypp::PluginFrame::Impl::empty ( ) const
inline

Definition at line 55 of file PluginFrame.cc.

const std::string& zypp::PluginFrame::Impl::command ( ) const
inline

Definition at line 58 of file PluginFrame.cc.

void zypp::PluginFrame::Impl::setCommand ( const std::string &  command_r)
inline

Definition at line 61 of file PluginFrame.cc.

const std::string& zypp::PluginFrame::Impl::body ( ) const
inline

Definition at line 68 of file PluginFrame.cc.

std::string& zypp::PluginFrame::Impl::bodyRef ( )
inline

Definition at line 71 of file PluginFrame.cc.

void zypp::PluginFrame::Impl::setBody ( const std::string &  body_r)
inline

Definition at line 74 of file PluginFrame.cc.

HeaderList& zypp::PluginFrame::Impl::headerList ( )
inline

Definition at line 81 of file PluginFrame.cc.

const HeaderList& zypp::PluginFrame::Impl::headerList ( ) const
inline

Definition at line 84 of file PluginFrame.cc.

const std::string& zypp::PluginFrame::Impl::getHeader ( const std::string &  key_r) const
inline

Definition at line 87 of file PluginFrame.cc.

const std::string& zypp::PluginFrame::Impl::getHeader ( const std::string &  key_r,
const std::string &  default_r 
) const
inline

Definition at line 98 of file PluginFrame.cc.

const std::string& zypp::PluginFrame::Impl::getHeaderNT ( const std::string &  key_r,
const std::string &  default_r 
) const
inline

Definition at line 109 of file PluginFrame.cc.

HeaderList::value_type zypp::PluginFrame::Impl::mkHeaderPair ( const std::string &  key_r,
const std::string &  value_r 
)
inline

Definition at line 115 of file PluginFrame.cc.

void zypp::PluginFrame::Impl::setHeader ( const std::string &  key_r,
const std::string &  value_r 
)
inline

Definition at line 124 of file PluginFrame.cc.

void zypp::PluginFrame::Impl::addHeader ( const std::string &  key_r,
const std::string &  value_r 
)
inline

Definition at line 130 of file PluginFrame.cc.

void zypp::PluginFrame::Impl::addHeader ( HeaderInitializerList  contents_r)
inline

Definition at line 135 of file PluginFrame.cc.

void zypp::PluginFrame::Impl::clearHeader ( const std::string &  key_r)
inline

Definition at line 141 of file PluginFrame.cc.

std::ostream & zypp::PluginFrame::Impl::writeTo ( std::ostream &  stream_r) const

Definition at line 215 of file PluginFrame.cc.

static shared_ptr<Impl> zypp::PluginFrame::Impl::nullimpl ( )
inlinestatic

Offer default Impl.

Definition at line 156 of file PluginFrame.cc.

Impl* zypp::PluginFrame::Impl::clone ( ) const
inlineprivate

clone for RWCOW_pointer

Definition at line 164 of file PluginFrame.cc.

Friends And Related Function Documentation

Impl* rwcowClone ( const Impl rhs)
friend
std::ostream & operator<< ( std::ostream &  str,
const PluginFrame::Impl obj 
)
related

Stream output

Definition at line 170 of file PluginFrame.cc.

Member Data Documentation

std::string zypp::PluginFrame::Impl::_command
private

Definition at line 150 of file PluginFrame.cc.

std::string zypp::PluginFrame::Impl::_body
private

Definition at line 151 of file PluginFrame.cc.

HeaderList zypp::PluginFrame::Impl::_header
private

Definition at line 152 of file PluginFrame.cc.


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