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, format_detail< T > const &rhs)
 Output the formatted detail to an ostream.
std::ostream & operator<< (std::ostream &stream, format_detail< bool > const &rhs)
 Output the formatted detail to an ostream.
std::ostream & operator<< (std::ostream &stream, format_detail< string_list > const &rhs)
 Output the formatted detail to an ostream.

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.


Friends And Related Function Documentation

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

Output the formatted detail to an ostream.

This is a special case for string_list values.

Parameters:
stream the stream to output to.
rhs the formatted detail to output.
Returns:
the stream.

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

Output the formatted detail to an ostream.

This is a special case for boolean values.

Parameters:
stream the stream to output to.
rhs the formatted detail to output.
Returns:
the stream.

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

Output the formatted detail to an ostream.

Parameters:
stream the stream to output to.
rhs the formatted detail to output.
Returns:
the stream.


Member Data Documentation

template<typename T>
std::string const& sbuild::chroot::format_detail< T >::name [private]
 

The name of the property.

template<typename T>
T const& sbuild::chroot::format_detail< T >::value [private]
 

The value of the property.


The documentation for this class was generated from the following file:
Generated on Sun Mar 19 12:08:54 2006 for schroot by  doxygen 1.4.6