SWKey Class Reference
#include <swkey.h>
List of all members.
Detailed Description
SWKey is used for positioning an SWModule to a specific entry. It always represents a possible location into a module and can additionally represent a domain of entries (e.g. "John 3:16" in the domain "John 1:1 - Mark 5:25")
Definition at line 77 of file swkey.h.
Constructor & Destructor Documentation
| SWKey::SWKey |
( |
const char * |
ikey = 0 |
) |
|
initializes instance of SWKey from a string All keys can be reduced to a string representation which should be able to be used to again set the key to the same position
- Parameters:
-
| ikey | string to use for initializing this new key |
Definition at line 41 of file swkey.cpp.
| SWKey::SWKey |
( |
SWKey const & |
k |
) |
|
Copy Constructor
- Parameters:
-
| k | The SWKey object to copy. |
Definition at line 53 of file swkey.cpp.
| SWKey::~SWKey |
( |
|
) |
[virtual] |
Destructor, cleans up this instance of SWKey
Definition at line 83 of file swkey.cpp.
Member Function Documentation
| virtual void SWKey::clearBound |
( |
|
) |
const [inline, virtual] |
| SWKey * SWKey::clone |
( |
|
) |
const [virtual] |
| int SWKey::compare |
( |
const SWKey & |
ikey |
) |
[virtual] |
Compares this key object to another SWKey object
- Parameters:
-
| ikey | key to compare with this one |
- Returns:
- >0 if this key is greater than compare key; <0 if this key is smaller than compare key; 0 if the keys are the same
Definition at line 217 of file swkey.cpp.
00218 {
00219 return strcmp((const char *)*this, (const char *)ikey);
00220 }
| void SWKey::copyFrom |
( |
const SWKey & |
ikey |
) |
[virtual] |
| void SWKey::decrement |
( |
int |
steps = 1 |
) |
[virtual] |
| virtual bool SWKey::equals |
( |
const SWKey & |
ikey |
) |
[inline, virtual] |
test equality of this SWKey object's position with another SWKey
- Parameters:
-
| ikey | key to compare with this one |
- Returns:
- true if the key positions are equal
Definition at line 195 of file swkey.h.
| SWDEPRECATED char SWKey::Error |
( |
|
) |
[inline] |
Gets and clears error status
- Returns:
- error status
Definition at line 159 of file swkey.h.
| const SWClass* SWObject::getClass |
( |
|
) |
const [inline, inherited] |
Use this to get the class definition and inheritance order.
- Returns:
- The class definition of this object
Definition at line 59 of file swobject.h.
00059 {
00060 return myclass;
00061 }
| virtual long SWKey::getIndex |
( |
|
) |
const [inline, virtual] |
| char* SWKey::getLocale |
( |
|
) |
const [inline] |
| const char * SWKey::getOSISRefRangeText |
( |
|
) |
const [virtual] |
| SWLocale * SWKey::getPrivateLocale |
( |
|
) |
const [protected] |
| const char * SWKey::getRangeText |
( |
|
) |
const [virtual] |
| virtual const char* SWKey::getShortText |
( |
|
) |
const [inline, virtual] |
| const char * SWKey::getText |
( |
|
) |
const [virtual] |
| void SWKey::increment |
( |
int |
steps = 1 |
) |
[virtual] |
| void SWKey::init |
( |
|
) |
[private] |
| virtual bool SWKey::isBoundSet |
( |
|
) |
const [inline, virtual] |
| bool SWKey::isPersist |
( |
|
) |
const |
Gets whether this key should persist in any module to which it is set otherwise just a copy will be used in the module.
- Returns:
- 1 - persists in module; 0 - a copy is attempted
Definition at line 98 of file swkey.cpp.
00099 {
00100 return persist;
00101 }
| virtual bool SWKey::isTraversable |
( |
|
) |
const [inline, virtual] |
| SWDEPRECATED char SWKey::Persist |
( |
signed char |
ipersist |
) |
[inline] |
Sets whether this key should persist in any module to which it is set otherwise just a copy will be used in the module.
- Parameters:
-
| ipersist | value which to set persist; |
- Returns:
- 1 - persists in module; 0 - a copy is attempted
Definition at line 153 of file swkey.h.
| SWDEPRECATED char SWKey::Persist |
( |
|
) |
const [inline] |
| char SWKey::popError |
( |
|
) |
[virtual] |
Definition at line 146 of file swkey.cpp.
00147 {
00148 char retval = error;
00149
00150 error = 0;
00151 return retval;
00152 }
| virtual void SWKey::positionFrom |
( |
const SWKey & |
ikey |
) |
[inline, virtual] |
| virtual void SWKey::setError |
( |
char |
err |
) |
[inline, virtual] |
| virtual void SWKey::setIndex |
( |
long |
iindex |
) |
[inline, virtual] |
| void SWKey::setLocale |
( |
const char * |
name |
) |
[inline] |
| void SWKey::setPersist |
( |
bool |
ipersist |
) |
|
| void SWKey::setText |
( |
const char * |
ikey |
) |
[virtual] |
Member Data Documentation
The documentation for this class was generated from the following files: