sipxportlib  Version 3.3
UtlBool.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2011 SIPez LLC. All rights reserved.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2004-2006 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
9 // Licensed to SIPfoundry under a Contributor Agreement.
10 //
11 // $$
13 
14 #ifndef _UTLBOOL_H_
15 #define _UTLBOOL_H_
16 
17 // SYSTEM INCLUDES
18 // APPLICATION INCLUDES
19 #include "utl/UtlDefs.h"
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 
35 {
36 /* //////////////////////////// PUBLIC //////////////////////////////////// */
37 public:
38 
39  static const UtlContainableType TYPE ;
41 /* ============================ CREATORS ================================== */
42 
46  UtlBool(bool bValue) ;
47 
51  virtual ~UtlBool();
52 
54  virtual UtlCopyableContainable* clone() const;
55 
56 /* ============================ MANIPULATORS ============================== */
57 
62  void setValue(bool bValue) ;
63 
64 /* ============================ ACCESSORS ================================= */
65 
69  bool getValue() const ;
70 
76  virtual unsigned hash() const ;
77 
81  virtual UtlContainableType getContainableType() const;
82 
83 /* ============================ INQUIRY =================================== */
84 
91  virtual int compareTo(UtlContainable const *) const ;
92 
94  virtual UtlBoolean isInstanceOf(const UtlContainableType type) const;
95 
96 /* //////////////////////////// PROTECTED ///////////////////////////////// */
97 protected:
98 
99 /* //////////////////////////// PRIVATE /////////////////////////////////// */
100 private:
101  bool mValue ;
103 } ;
104 
105 /* ============================ INLINE METHODS ============================ */
106 
107 #endif // _UTLBOOL_H_
static const UtlContainableType TYPE
Definition: UtlBool.h:39
virtual UtlContainableType getContainableType() const
Definition: UtlBool.cpp:72
Definition: UtlCopyableContainable.h:43
virtual unsigned hash() const
Definition: UtlBool.cpp:66
bool getValue() const
Definition: UtlBool.cpp:60
void setValue(bool bValue)
Definition: UtlBool.cpp:53
const char *const UtlContainableType
Definition: UtlDefs.h:70
Definition: UtlContainable.h:37
virtual int compareTo(UtlContainable const *) const
Definition: UtlBool.cpp:79
virtual ~UtlBool()
Definition: UtlBool.cpp:42
Definition: UtlBool.h:34
int UtlBoolean
Definition: UtlDefs.h:41
virtual UtlBoolean isInstanceOf(const UtlContainableType type) const
Determine if this object is a derivative of the specified UtlContainableType.
Definition: UtlBool.cpp:104
virtual UtlCopyableContainable * clone() const
Make a copy of this.
Definition: UtlBool.cpp:46
UtlBool(bool bValue)
Definition: UtlBool.cpp:31