KVIrc  4.9.2
DeveloperAPIs
KviKvsRWEvaluationResult.h
Go to the documentation of this file.
1 #ifndef _KVI_KVS_RWEVALUATIONRESULT_H_
2 #define _KVI_KVS_RWEVALUATIONRESULT_H_
3 //=============================================================================
4 //
5 // File : KviKvsRWEvaluationResult.h
6 // Creation date : Thu 11 Dec 2003 22:51:46 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2003-2010 Szymon Stefanek <pragma at kvirc dot net>
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "kvi_settings.h"
28 #include "KviKvsVariant.h"
29 
31 {
32 public:
33  // this result becomes the owner of the parent result!!!!
35  // the destructor must do (in order):
36  // check if variant is empty and if it is then remove it from the container (destroy it)
37  // delete the m_pParent result
38  virtual ~KviKvsRWEvaluationResult();
39 
40 protected:
43 
44 public:
45  KviKvsVariant * result() { return m_pVariant; };
46 };
47 
48 class KviKvsArray;
49 
51 {
52 public:
55 
56 protected:
58  int m_iKey;
59 };
60 
61 class KviKvsHash;
62 
64 {
65 public:
66  KviKvsHashElement(KviKvsRWEvaluationResult * pParent, KviKvsVariant * pVariant, KviKvsHash * pHash, const QString & szKey);
68 
69 protected:
71  QString m_szKey;
72 };
73 
74 #endif
KviKvsArray * m_pArray
Definition: KviKvsRWEvaluationResult.h:57
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
#define KVIRC_API
Definition: kvi_settings.h:128
Definition: KviKvsRWEvaluationResult.h:50
KviKvsArray * pArray
Definition: libkviserverdb.cpp:476
This class defines a new data type which contains hash data.
Definition: KviKvsHash.h:47
Definition: KviKvsRWEvaluationResult.h:63
KviKvsVariant * result()
Definition: KviKvsRWEvaluationResult.h:45
KviKvsVariant * m_pVariant
Definition: KviKvsRWEvaluationResult.h:42
int m_iKey
Definition: KviKvsRWEvaluationResult.h:58
KviKvsRWEvaluationResult * m_pParent
Definition: KviKvsRWEvaluationResult.h:41
This class defines a new data type which contains array data.
Definition: KviKvsArray.h:43
Handling of variant data type in KVS.
This file contains compile time settings.
KviKvsHash * m_pHash
Definition: KviKvsRWEvaluationResult.h:70
Definition: KviKvsRWEvaluationResult.h:30
QString m_szKey
Definition: KviKvsRWEvaluationResult.h:71