zypp::str::SafeBuf Struct Reference
[RAII solutions]

Assert free called for allocated char *. More...

#include <String.h>

List of all members.

Public Member Functions

 SafeBuf ()
 ~SafeBuf ()
std::string asString () const

Public Attributes

char * _buf


Detailed Description

Assert free called for allocated char *.

 ...
 SafeBuf safe;
 vasprintf( &safe._buf, format, ap );
 return safe.asString();

Definition at line 52 of file String.h.


Constructor & Destructor Documentation

zypp::str::SafeBuf::SafeBuf (  )  [inline]

Definition at line 55 of file String.h.

zypp::str::SafeBuf::~SafeBuf (  )  [inline]

Definition at line 56 of file String.h.


Member Function Documentation

std::string zypp::str::SafeBuf::asString (  )  const [inline]

Definition at line 57 of file String.h.

Referenced by zypp::str::form().


Member Data Documentation

char* zypp::str::SafeBuf::_buf

Definition at line 54 of file String.h.

Referenced by zypp::str::form().


The documentation for this struct was generated from the following file:
Generated on Tue Nov 28 16:49:41 2006 for zypp by  doxygen 1.5.0