ept::Sources::Entry Struct Reference

#include <sources.h>

List of all members.

Public Types

enum  Type { Binary, Source, Comment }
typedef wibble::Range
< std::string > 
StringRange
typedef wibble::Consumer
< std::string > 
StringConsumer
typedef std::vector< std::string > StringVector

Public Member Functions

 Entry (bool e=false, Type t=Comment, std::string u="", std::string d="", StringRange c=wibble::range(*new StringVector))
 Entry (const Entry &e)
bool operator< (const Entry &o) const
bool operator== (const Entry &e) const
std::string components () const
void setComponents (const std::string &s)
std::string typeString () const
void setTypeString (const std::string &s)
std::string distribution () const
void setDistribution (const std::string &s)
std::string url () const
void setUrl (const std::string &s)
bool enabled () const
void setEnabled (bool e)
std::string comment () const
void setComment (const std::string &s)
Type type () const
void setType (Type t)

Protected Attributes

bool m_enabled
Type m_type
std::string m_url
std::string m_dist
StringVector m_components
std::string m_comment

Friends

std::istream & operator>> (std::istream &i, Entry &s)

Classes

struct  Word


Member Typedef Documentation

typedef wibble::Range< std::string > ept::Sources::Entry::StringRange

typedef wibble::Consumer< std::string > ept::Sources::Entry::StringConsumer

typedef std::vector< std::string > ept::Sources::Entry::StringVector


Member Enumeration Documentation

Enumerator:
Binary 
Source 
Comment 


Constructor & Destructor Documentation

ept::Sources::Entry::Entry ( bool  e = false,
Type  t = Comment,
std::string  u = "",
std::string  d = "",
StringRange  c = wibble::range( *new StringVector ) 
) [inline]

References m_components.

ept::Sources::Entry::Entry ( const Entry e  )  [inline]

References m_components.


Member Function Documentation

bool ept::Sources::Entry::operator< ( const Entry o  )  const [inline]

bool ept::Sources::Entry::operator== ( const Entry e  )  const [inline]

std::string ept::Sources::Entry::components (  )  const [inline]

References m_components.

Referenced by operator<(), and ept::operator<<().

void ept::Sources::Entry::setComponents ( const std::string &  s  )  [inline]

References m_components.

std::string ept::Sources::Entry::typeString (  )  const [inline]

References Binary, Comment, Source, and type().

Referenced by ept::operator<<().

void ept::Sources::Entry::setTypeString ( const std::string &  s  )  [inline]

References Binary, Comment, setType(), and Source.

Referenced by ept::operator>>().

std::string ept::Sources::Entry::distribution (  )  const [inline]

References m_dist.

Referenced by operator<(), and ept::operator<<().

void ept::Sources::Entry::setDistribution ( const std::string &  s  )  [inline]

References m_dist.

std::string ept::Sources::Entry::url (  )  const [inline]

References m_url.

Referenced by operator<(), and ept::operator<<().

void ept::Sources::Entry::setUrl ( const std::string &  s  )  [inline]

References m_url.

bool ept::Sources::Entry::enabled (  )  const [inline]

References m_enabled.

Referenced by operator<(), and ept::operator<<().

void ept::Sources::Entry::setEnabled ( bool  e  )  [inline]

References m_enabled.

Referenced by ept::operator>>(), and setType().

std::string ept::Sources::Entry::comment (  )  const [inline]

References m_comment.

Referenced by operator<(), and ept::operator<<().

void ept::Sources::Entry::setComment ( const std::string &  s  )  [inline]

References m_comment.

Referenced by ept::operator>>().

Type ept::Sources::Entry::type (  )  const [inline]

References m_type.

Referenced by operator<(), ept::operator<<(), and typeString().

void ept::Sources::Entry::setType ( Type  t  )  [inline]

References Comment, m_type, and setEnabled().

Referenced by ept::operator>>(), and setTypeString().


Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  i,
Sources::Entry e 
) [friend]


Member Data Documentation

Referenced by enabled(), and setEnabled().

Referenced by setType(), and type().

std::string ept::Sources::Entry::m_url [protected]

Referenced by ept::operator>>(), setUrl(), and url().

std::string ept::Sources::Entry::m_dist [protected]

std::string ept::Sources::Entry::m_comment [protected]

Referenced by comment(), and setComment().


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

Generated on Sat Jul 26 22:42:59 2008 for libept by  doxygen 1.5.6