Diana Software
QString.cc
Go to the documentation of this file.
1 #include "QString.hh"
2 
3 QObjectImp(Diana::QString);
4 
6 
7 const QString& QString::operator=(const std::string& value)
8 {
9  fValue = value;
10  Validate();
11  return *this;
12 }
13 
14 const QString& QString::operator=(const char* value)
15 {
16  fValue = value;
17  Validate();
18  return *this;
19 }
20 
21 bool QString::operator==(const std::string& value) const
22 {
23  return fValue == value;
24 }
25 
26 
28 
29 
30 /*
31 bool operator==(const bool b,const Diana::QString& qb)
32 {
33  return qb == b;
34 }
35 */
#define Q_END_NAMESPACE
Definition: QDiana.hh:22
#define Q_BEGIN_NAMESPACE
Definition: QDiana.hh:20
QObjectImp(Diana::QString)
void Validate()
make object valid
Definition: QObject.hh:108
string wrapped into a QObject
Definition: QString.hh:18
const QString & operator=(const std::string &value)
operator=
Definition: QString.cc:7
bool operator==(const std::string &value) const
operator==
Definition: QString.cc:21
std::string fValue
value
Definition: QString.hh:56