OSFI-C++  3.9.2
OpenSF Integration Library
ArrayNode.h
1 /*
2  * openSF Integration Libraries (OSFI)
3  * Deimos Space, S.L.U.
4  *
5  * This file is part of OSFI. OSFI is free software; you can redistribute it
6  * and/or modify it under the terms of the 'ESA Software Community Licence Permissive' as
7  * published by the European Space Agency; either version 2.4 of the License,
8  * or (at your option) any later version. You should have received a
9  * copy of the 'ESA Software Community Licence Permissive - v2.4' along with this program
10  * or one can be found at <http://eop-cfi.esa.int/index.php/docs-and-mission-data/licensing-documents>.
11  *
12  * ArrayNode.h
13  *
14  * Created on: Apr 21, 2016
15  * Author: nucc
16  */
17 
18 #ifndef OSFI_SRC_COMMON_CONFM_ARRAYNODE_H_
19 #define OSFI_SRC_COMMON_CONFM_ARRAYNODE_H_
20 
21 #include "ConFM/base.h"
22 
23 class ArrayNode {
24  std::vector<std::string> elements_;
25  std::vector<ArrayNode> children_;
26 
27 public:
28 
29  ArrayNode();
30 
31  ArrayNode(std::vector<std::string> elements, std::vector<ArrayNode> children);
32 
33 
34  const std::vector<std::string>& getElements() const;
35 
36  const std::vector<ArrayNode>& getChildren() const;
37 
39  const int getDegree() const;
40 
44  const ArrayNode& getChild(int i) const;
45 
47  const bool isLeaf() const;
48 
50  std::vector<std::string> getVectorString() const;
51 
53  std::vector<std::string> getVectorFile() const;
54 
56  std::vector<double> getVectorDouble() const;
57 
59  std::vector<int> getVectorInt() const;
60 
62  std::vector<bool> getVectorBoolean() const;
63 
65  std::vector<osfi::confm::TimeValue> getVectorTime() const;
66 };
67 
68 
69 #endif /* OSFI_SRC_COMMON_CONFM_ARRAYNODE_H_ */
ArrayNode::getDegree
const int getDegree() const
ArrayNode::isLeaf
const bool isLeaf() const
ArrayNode::getVectorTime
std::vector< osfi::confm::TimeValue > getVectorTime() const
ArrayNode::getVectorInt
std::vector< int > getVectorInt() const
ArrayNode::getVectorBoolean
std::vector< bool > getVectorBoolean() const
ArrayNode
Definition: ArrayNode.h:23
ArrayNode::getVectorDouble
std::vector< double > getVectorDouble() const
ArrayNode::getVectorFile
std::vector< std::string > getVectorFile() const
ArrayNode::getChild
const ArrayNode & getChild(int i) const
ArrayNode::getVectorString
std::vector< std::string > getVectorString() const