Debian Codegraph @

src/framework/System/CObject.cpp

raw symbols SCIP
1 /***************************************************************************
2 CObject.cpp - description
3 -------------------
4 begin : December 29th, 2008
5 copyright : (C) 2008 by Duong Khang NGUYEN
6 email : neoneurone @ gmail com
7
8 $Id: CObject.cpp 449 2010-05-20 18:46:59Z neoneurone $
9 ***************************************************************************/
10
11 /***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * any later version. *
17 * *
18 ***************************************************************************/
19
20 // Framework headers
21 #include "CNullValue.h" // System::NullValue class
22 #include "CObject.h" // System::Object class
23 #include "CString.h" // System::String class
24 #include "CType.h" // System::Type class
25
26
27 SPF_NAMESPACE_BEGIN(System)
28
29
30 /*=====================================================================*/
31 Object::Object():
32 mbIsNull(false)
33 {
34 }
35
36
37 Object::Object(const NullValue& null)
38 {
39 mbIsNull = null.IsNull();
40 }
41
42
43 Object::~Object()
44 {
45 }
46
47
48 /*=====================================================================*/
49 bool Object::IsNull() const
50 {
51 return mbIsNull;
52 }
53
54
55 /*=====================================================================*/
56 bool Object::Equals(const Object& obj) const
57 {
58 return (this == &obj);
59 }
60
61
62 /*=====================================================================*/
63 String Object::ToString() const
64 {
65 return String("System::Object");
66 }
67
68
69 /*=====================================================================*/
70 Type Object::GetType() const
71 {
72 return typeid(*this);
73 }
74
75
76 /*=====================================================================*/
77 Object& Object::operator=(const NullValue& null)
78 {
79 mbIsNull = null.IsNull();
80 return *this;
81 }
82
83
84 bool Object::operator==(const Object& obj) const
85 {
86 return (this == &obj);
87 }
88
89
90 bool Object::operator!=(const Object& obj) const
91 {
92 return (this != &obj);
93 }
94
95
96 /*=====================================================================*/
97
98
99 SPF_NAMESPACE_END