VMware Tanzu GemFire Native C++ Reference 10.2.7
GeodeCache.hpp
Go to the documentation of this file.
1#pragma once
2
3#ifndef GEODE_GEMFIRECACHE_H_
4#define GEODE_GEMFIRECACHE_H_
5
6/*
7 * Licensed to the Apache Software Foundation (ASF) under one or more
8 * contributor license agreements. See the NOTICE file distributed with
9 * this work for additional information regarding copyright ownership.
10 * The ASF licenses this file to You under the Apache License, Version 2.0
11 * (the "License"); you may not use this file except in compliance with
12 * the License. You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 */
22
23#include "RegionService.hpp"
24#include "internal/geode_globals.hpp"
25
30namespace apache {
31namespace geode {
32namespace client {
33
34class SystemProperties;
35
48class APACHE_GEODE_EXPORT GeodeCache : public RegionService {
52 public:
56 virtual const std::string& getName() const = 0;
57
72 virtual void initializeDeclarativeCache(const std::string& cacheXml) = 0;
73
74 virtual SystemProperties& getSystemProperties() const = 0;
75
79 virtual bool getPdxIgnoreUnreadFields() const = 0;
80
85 virtual bool getPdxReadSerialized() const = 0;
86};
87} // namespace client
88} // namespace geode
89} // namespace apache
90
91#endif // GEODE_GEMFIRECACHE_H_
GeodeCache represents the singleton cache that must be created in order to connect to Geode server.
Definition: GeodeCache.hpp:48
virtual bool getPdxIgnoreUnreadFields() const =0
Returns whether Cache saves unread fields for Pdx types.
virtual const std::string & getName() const =0
public methods
virtual void initializeDeclarativeCache(const std::string &cacheXml)=0
Initialize the cache by the contents of an xml file.
virtual bool getPdxReadSerialized() const =0
Returns whether PdxInstance is preferred for PDX types instead of C++ object.
A RegionService provides access to existing regions that exist in a Geode cache.
Definition: RegionService.hpp:62
The SystemProperties class.
Definition: SystemProperties.hpp:44

Apache Geode C++ Cache API Documentation