Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MSN::Passport Class Reference

#include <passport.h>

List of all members.


Detailed Description

A Passport represents a passport address.

It is used to validate these addresses for functions that require it.

Todo:
Document validation rules.

Todo:
Investigate subclassing std::string to reduce code duplication.


Public Member Functions

 Passport (std::string email_)
 Passport (const char *email_)
 Passport ()
 operator std::string () const
const char * c_str () const
bool operator== (const Passport &other) const

Friends

bool operator== (const Passport &p, const std::string &other)
bool operator== (const std::string &other, const Passport &p)
std::istream & operator>> (std::istream &is, Passport &p)


Constructor & Destructor Documentation

MSN::Passport::Passport std::string  email_  )  [inline]
 

MSN::Passport::Passport const char *  email_  )  [inline]
 

MSN::Passport::Passport  )  [inline]
 


Member Function Documentation

const char * MSN::Passport::c_str  )  const
 

MSN::Passport::operator std::string  )  const
 

bool MSN::Passport::operator== const Passport other  )  const [inline]
 


Friends And Related Function Documentation

bool operator== const std::string &  other,
const Passport p
[friend]
 

bool operator== const Passport p,
const std::string &  other
[friend]
 

std::istream& operator>> std::istream &  is,
Passport p
[friend]
 


The documentation for this class was generated from the following files:
Generated on Sun Feb 6 19:59:41 2005 for libmsn by  doxygen 1.4.1