/** Whether this is an empty frame. */
bool empty() const;
- /** Evaluate in a boolean context (not an empty frame) */
+ /** Evaluate in a boolean context (empty frame) */
explicit operator bool() const
- { return !empty(); }
+ { return empty(); }
public:
/** Return the frame command. */
bool keyEmpty( const std::string & key_r ) const
{ return headerList().find( key_r ) == headerEnd(); }
- /** Return number of header entries for \c key_r. */
+ /** Return number of header entires for \c key_r. */
bool keySize( const std::string & key_r ) const
{ return headerList().count( key_r ); }
/** Not throwing version returing one of the matching header values or \c default_r string. */
const std::string & getHeaderNT( const std::string & key_r, const std::string & default_r = std::string() ) const;
- /** Set header for \c key_r removing all other occurrences of \c key_r.
+ /** Set header for \c key_r removing all other occurences of \c key_r.
* \throw PluginFrameException If key contains illegal chars (\c NL or \c :)
* \throw PluginFrameException If value contains illegal chars (\c NL)
*/
/** \relates PluginFrame Stream output for logging */
std::ostream & operator<<( std::ostream & str, const PluginFrame & obj );
- /** \relates PluginFrame Stream output writing all data for logging (no throw) */
+ /** \relates PluginFrame Stream output sending all data */
inline std::ostream & dumpOn( std::ostream & str, const PluginFrame & obj )
- { if ( str ) try { PluginFrame::writeTo( str, obj ); } catch(...){}; return str; }
+ { return PluginFrame::writeTo( str, obj ); }
/** \relates PluginFrame Construct from stream. */
inline std::istream & operator>>( std::istream & str, PluginFrame & obj )