-
Notifications
You must be signed in to change notification settings - Fork 177
/
cataloginteger.h
57 lines (45 loc) · 1.77 KB
/
cataloginteger.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB Inc.
*
* VoltDB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VoltDB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VoltDB. If not, see <http://www.gnu.org/licenses/>.
*/
/* WARNING: THIS FILE IS AUTO-GENERATED
DO NOT MODIFY THIS SOURCE
ALL CHANGES MUST BE MADE IN THE CATALOG GENERATOR */
#ifndef CATALOG_CATALOGINTEGER_H_
#define CATALOG_CATALOGINTEGER_H_
#include <string>
#include "catalogtype.h"
#include "catalogmap.h"
namespace catalog {
/**
* Wrapper for an integer so it can be in a list.
*/
class CatalogInteger : public CatalogType {
friend class Catalog;
friend class CatalogMap<CatalogInteger>;
protected:
CatalogInteger(Catalog * catalog, CatalogType * parent, const std::string &path, const std::string &name);
int32_t m_value;
virtual void update();
virtual CatalogType * addChild(const std::string &collectionName, const std::string &name);
virtual CatalogType * getChild(const std::string &collectionName, const std::string &childName) const;
virtual bool removeChild(const std::string &collectionName, const std::string &childName);
public:
~CatalogInteger();
/** GETTER: Integer Value */
int32_t value() const;
};
} // namespace catalog
#endif // CATALOG_CATALOGINTEGER_H_