Statistics
| Branch: | Tag: | Revision:

one / src / scheduler / include / ClusterXML.h @ 4697f1ee

History | View | Annotate | Download (1.81 KB)

1
/* -------------------------------------------------------------------------- */
2
/* Copyright 2002-2015, OpenNebula Project Leads (OpenNebula.org)             */
3
/*                                                                            */
4
/* Licensed under the Apache License, Version 2.0 (the "License"); you may    */
5
/* not use this file except in compliance with the License. You may obtain    */
6
/* a copy of the License at                                                   */
7
/*                                                                            */
8
/* http://www.apache.org/licenses/LICENSE-2.0                                 */
9
/*                                                                            */
10
/* Unless required by applicable law or agreed to in writing, software        */
11
/* distributed under the License is distributed on an "AS IS" BASIS,          */
12
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   */
13
/* See the License for the specific language governing permissions and        */
14
/* limitations under the License.                                             */
15
/* -------------------------------------------------------------------------- */
16

    
17

    
18
#ifndef CLUSTER_XML_H_
19
#define CLUSTER_XML_H_
20

    
21
#include "ObjectXML.h"
22

    
23
using namespace std;
24

    
25
class ClusterXML : public ObjectXML
26
{
27
public:
28
    ClusterXML(const string &xml_doc):ObjectXML(xml_doc)
29
    {
30
        init_attributes();
31
    };
32

    
33
    ClusterXML(const xmlNodePtr node):ObjectXML(node)
34
    {
35
        init_attributes();
36
    };
37

    
38
    int get_oid() const
39
    {
40
        return oid;
41
    };
42

    
43
private:
44
    int oid;
45

    
46
    void init_attributes();
47

    
48
    // Configuration attributes
49
    static const char *cluster_paths[]; /**< paths for search function */
50

    
51
    static int cluster_num_paths; /**< number of paths*/
52

    
53
};
54

    
55
#endif /* CLUSTER_XML_H_ */