sbuild::Chroot::format_detail< T > Class Template Reference

Helper to perform formatting of chroot details. More...

#include <sbuild-chroot.h>

Collaboration diagram for sbuild::Chroot::format_detail< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 format_detail (std::string const &name, T const &value)
 The constructor.

Private Attributes

std::string const & name
 The name of the property.
T const & value
 The value of the property.

Friends

std::ostream & operator<< (std::ostream &stream, const format_detail< T > &rhs)
 Send format detail to an ostream.
std::ostream & operator<< (std::ostream &stream, const format_detail< bool > &rhs)
 Send format detail to an ostream (special case for boolean values).
std::ostream & operator<< (std::ostream &stream, const format_detail< string_list > &rhs)
 Send format detail to an ostream (special case for string_list).

Detailed Description

template<typename T>
class sbuild::Chroot::format_detail< T >

Helper to perform formatting of chroot details.


Constructor & Destructor Documentation

template<typename T>
sbuild::Chroot::format_detail< T >::format_detail std::string const &  name,
T const &  value
[inline]
 

The constructor.

Parameters:
name the name of the property to format.
value the value of the property to format. The value type must support output to an ostream.
Todo:
Replace convenience typedefs with a templated function.


Friends And Related Function Documentation

template<typename T>
std::ostream& operator<< std::ostream &  stream,
const format_detail< string_list > &  rhs
[friend]
 

Send format detail to an ostream (special case for string_list).

Todo:
Is this redundant?


The documentation for this class was generated from the following file:
Generated on Thu Dec 29 17:20:06 2005 for schroot by  doxygen 1.4.5