Wt examples
3.3.0
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
build
buildd
witty-3.3.0
examples
composer
Contact.h
Go to the documentation of this file.
1
// This may look like C code, but it's really -*- C++ -*-
2
/*
3
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
4
*
5
* See the LICENSE file for terms of use.
6
*/
7
#ifndef CONTACT_H_
8
#define CONTACT_H_
9
14
19
struct
Contact
20
{
23
std::wstring
name
;
24
27
std::wstring
email
;
28
31
Contact
(
const
std::wstring name_,
const
std::wstring email_)
32
:
name
(name_),
33
email
(email_)
34
{ }
35
38
std::wstring
formatted
()
const
{
39
return
L
'"'
+
name
+ L
"\" <"
+
email
+ L
">"
;
40
}
41
};
42
45
#endif // CONTACT_H_
Generated on Fri May 31 2013 for
the C++ Web Toolkit (Wt)
by
1.8.3.1