Public Member Functions
vul_sprintf Struct Reference

C++ conforming replacement to the ANSI C functions sprintf and printf. More...

#include <vul_sprintf.h>

List of all members.

Public Member Functions

 vul_sprintf (char const *fmt,...)
vul_sprintfoperator= (vcl_string const &s)
vul_sprintfoperator= (char const *s)
 operator char const * () const

Detailed Description

C++ conforming replacement to the ANSI C functions sprintf and printf.

vul_sprintf works in the same way as sprintf but is itself an ANSI C++ string which can either be kept or output directly using streams e.g.

 vcl_cerr << vul_sprintf("int %d, float %f ", 1, 3.14)
          << bigobject << vcl_endl;

Definition at line 31 of file vul_sprintf.h.


Constructor & Destructor Documentation

vul_sprintf::vul_sprintf ( char const *  fmt,
  ... 
)

Definition at line 19 of file vul_sprintf.cxx.


Member Function Documentation

vul_sprintf::operator char const * ( ) const [inline]

Definition at line 49 of file vul_sprintf.h.

vul_sprintf& vul_sprintf::operator= ( vcl_string const &  s) [inline]

Definition at line 43 of file vul_sprintf.h.

vul_sprintf& vul_sprintf::operator= ( char const *  s) [inline]

Definition at line 45 of file vul_sprintf.h.


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