[sword-cvs] sword/include listkey.h,1.18,1.19
sword@www.crosswire.org
sword@www.crosswire.org
Sat, 30 Aug 2003 18:58:16 -0700
- Previous message: [sword-cvs] sword/bindings/corba/orbitcpp Makefile,1.4,1.5 swordorb-impl.cpp,1.8,1.9 swordorb-impl.hpp,1.7,1.8 testclient.cpp,1.7,1.8
- Next message: [sword-cvs] sword/src/keys listkey.cpp,1.18,1.19 swkey.cpp,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/local/cvsroot/sword/include
In directory www:/tmp/cvs-serv24365/include
Modified Files:
listkey.h
Log Message:
Index: listkey.h
===================================================================
RCS file: /usr/local/cvsroot/sword/include/listkey.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- listkey.h 28 Feb 2003 13:12:43 -0000 1.18
+++ listkey.h 31 Aug 2003 01:58:13 -0000 1.19
@@ -37,51 +37,54 @@
*/
class SWDLLEXPORT ListKey : public SWKey {
- static SWClass classdef;
- void init ();
+ static SWClass classdef;
+ void init ();
protected:
- int arraypos;
- int arraymax;
- int arraycnt;
- SWKey **array;
+ int arraypos;
+ int arraymax;
+ int arraycnt;
+ SWKey **array;
public:
/** initializes instance of ListKey
*
* @param ikey text key
*/
- ListKey (const char *ikey = 0);
- ListKey (ListKey const &k);
+ ListKey(const char *ikey = 0);
+ ListKey(ListKey const &k);
/** cleans up instance of ListKey
*/
- virtual ~ ListKey ();
+ virtual ~ ListKey();
- virtual SWKey *clone () const;
+ virtual SWKey *clone() const;
/** Clears out elements of list
*/
- virtual void ClearList ();
+ virtual void ClearList();
/** Returns number of elements in list
* @return number of elements in list
*/
- virtual int Count ();
+ virtual int Count();
/** Removes current element from list
*/
- virtual void Remove ();
+ virtual void Remove();
/** Sets key to element number
*
* @param ielement element number to set to
* @return error status
*/
- virtual char SetToElement (int ielement, SW_POSITION = TOP);
+ virtual char SetToElement(int ielement, SW_POSITION = TOP);
/** Gets a key element number
*
* @param pos element number to get (or default current)
* @return Key or null on error
*/
- virtual SWKey *GetElement (int pos = -1);
+ virtual SWKey *getElement(int pos = -1);
+ // deprecated, use above function
+ virtual SWKey *GetElement(int pos = -1) { return getElement(pos); }
+
/** Adds an element to the list
* @param ikey the element to add
*/
- ListKey & operator << (const SWKey &ikey) { add(ikey); return *this; }
+ ListKey & operator <<(const SWKey &ikey) { add(ikey); return *this; }
virtual void add(const SWKey &ikey);
/** Equates this ListKey to another ListKey object
@@ -104,15 +107,15 @@
*/
virtual void increment(int step);
- virtual char Traversable () { return 1; }
- virtual long Index () const { return arraypos; }
+ virtual char Traversable() { return 1; }
+ virtual long Index() const { return arraypos; }
virtual const char *getRangeText() const;
/**
* Returns the index for the new one given as as parameter.
* The first parameter is the new index.
*/
- virtual long Index (long index) { SetToElement (index); return Index (); }
+ virtual long Index(long index) { SetToElement (index); return Index (); }
virtual const char *getText() const;
virtual void setText(const char *ikey);
- Previous message: [sword-cvs] sword/bindings/corba/orbitcpp Makefile,1.4,1.5 swordorb-impl.cpp,1.8,1.9 swordorb-impl.hpp,1.7,1.8 testclient.cpp,1.7,1.8
- Next message: [sword-cvs] sword/src/keys listkey.cpp,1.18,1.19 swkey.cpp,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]