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

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 Thu Jul 6 00:07:35 2006 for zypp by  doxygen 1.4.6