Public Member Functions | List of all members
vul_sprintf Struct Reference

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

#include <vul_sprintf.h>

Inheritance diagram for vul_sprintf:
Inheritance graph
[legend]

Public Member Functions

 vul_sprintf (char const *fmt,...)
 
vul_sprintfoperator= (std::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.

std::cerr << vul_sprintf("int %d, float %f ", 1, 3.14)
<< bigobject << std::endl;

Definition at line 31 of file vul_sprintf.h.

Constructor & Destructor Documentation

◆ vul_sprintf()

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

Definition at line 19 of file vul_sprintf.cxx.

Member Function Documentation

◆ operator char const *()

vul_sprintf::operator char const * ( ) const
inline

Definition at line 49 of file vul_sprintf.h.

◆ operator=() [1/2]

vul_sprintf& vul_sprintf::operator= ( std::string const &  s)
inline

Definition at line 43 of file vul_sprintf.h.

◆ operator=() [2/2]

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: