Wt examples  3.2.1
/home/koen/project/wt/public-git/wt/examples/composer/Contact.h
Go to the documentation of this file.
00001 // This may look like C code, but it's really -*- C++ -*-
00002 /*
00003  * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
00004  *
00005  * See the LICENSE file for terms of use.
00006  */
00007 #ifndef CONTACT_H_
00008 #define CONTACT_H_
00009 
00014 
00019 struct Contact
00020 {
00023   std::wstring name;
00024 
00027   std::wstring email;
00028 
00031   Contact(const std::wstring name_, const std::wstring email_)
00032     : name(name_),
00033       email(email_)
00034   { }
00035 
00038   std::wstring formatted() const {
00039     return L'"' + name + L"\" <" + email + L">";
00040   }
00041 };
00042 
00045 #endif // CONTACT_H_

Generated on Fri Mar 30 2012 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1