VMware Tanzu GemFire Native C++ Reference  10.1.5
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 
30 namespace apache {
31 namespace geode {
32 namespace client {
33 
34 class SystemProperties;
35 
48 class 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_
apache::geode::client::GeodeCache::getPdxReadSerialized
virtual bool getPdxReadSerialized() const =0
Returns whether PdxInstance is preferred for PDX types instead of C++ object.
apache::geode::client::GeodeCache::getName
virtual const std::string & getName() const =0
public methods
apache::geode::client::SystemProperties
The SystemProperties class.
Definition: SystemProperties.hpp:44
apache::geode::client::RegionService
A RegionService provides access to existing regions that exist in a Geode cache.
Definition: RegionService.hpp:62
apache::geode::client::GeodeCache
GeodeCache represents the singleton cache that must be created in order to connect to Geode server.
Definition: GeodeCache.hpp:48
apache::geode::client::GeodeCache::getPdxIgnoreUnreadFields
virtual bool getPdxIgnoreUnreadFields() const =0
Returns whether Cache saves unread fields for Pdx types.
RegionService.hpp
apache::geode::client::GeodeCache::initializeDeclarativeCache
virtual void initializeDeclarativeCache(const std::string &cacheXml)=0
Initialize the cache by the contents of an xml file.

Apache Geode C++ Cache API Documentation