Wt examples
3.2.3
|
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_