NeoCpp
list_interface.h
1 /*
2 Apache 2.0 License
3 
4 Copyright 2018 Alex Barry
5 
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 
18 */
19 
20 #include <string>
21 
22 #ifndef NEOCPP_DATA_INTERFACE_NEO4J_LIST_INTERFACE_H_
23 #define NEOCPP_DATA_INTERFACE_NEO4J_LIST_INTERFACE_H_
24 
25 namespace Neocpp {
26 
28 
32  public:
33  virtual ~DbListInterface() {}
34 
36  virtual bool get_bool_element(unsigned int ind) = 0;
37 
39  virtual int get_int_element(unsigned int ind) = 0;
40 
42  virtual double get_float_element(unsigned int ind) = 0;
43 
45  virtual std::string get_string_element(unsigned int ind, \
46  int char_buffer_size) = 0;
47 
49  virtual std::string get_string_element(unsigned int ind) = 0;
50 
52  virtual std::string to_string() = 0;
53 
55  virtual unsigned int size() = 0;
56 };
57 
58 } // namespace Neocpp
59 
60 #endif // NEOCPP_DATA_INTERFACE_NEO4J_LIST_INTERFACE_H_
A Neo4j List.
Definition: list_interface.h:31
virtual double get_float_element(unsigned int ind)=0
Get a float element out of a list.
virtual std::string get_string_element(unsigned int ind, int char_buffer_size)=0
Get a list string out of a list.
virtual bool get_bool_element(unsigned int ind)=0
Get a bool element out of a list.
virtual std::string to_string()=0
Get the string representation of the list.
virtual unsigned int size()=0
Get the size of a list.
Definition: neo4j_interface.h:28
virtual int get_int_element(unsigned int ind)=0
Get an int element out of a list.