1
/*###############################################################################
2
# Linux Management Providers (LMP), SSH provider package
3
# Copyright (C) 2010 Feng Zhanlei, REDFLAG <fengzhanlei@redflag-linux.com>
5
# This program is being developed under the "OpenDRIM" project.
6
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
7
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
9
# This program is free software; you can redistribute it and/or
10
# modify it under the terms of the GNU General Public License
11
# as published by the Free Software Foundation; version 2
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
#################################################################################
24
#################################################################################
25
# To contributors, please leave your contact information in this section
26
# AND comment your changes in the source code.
28
# Modified by Guillaume BOTTEX <guillaumebottex@uxsystem.net>, UXSystem, 2010
29
###############################################################################*/
31
#ifndef OPENDRIM_HOSTEDSSHSERVICE_H_
32
#define OPENDRIM_HOSTEDSSHSERVICE_H_
34
#include <Association.h>
36
// Direct Invocation includes, may have to be adjusted
38
#include "cmpiCIM_System.h"
39
#include "CIM_SystemAccess.h"
40
#include "cmpiCIM_Service.h"
41
#include "CIM_ServiceAccess.h"
44
const static char* OpenDRIM_HostedSSHService_classnames[] = {"OpenDRIM_HostedSSHService"};
45
static string OpenDRIM_HostedSSHService_NAMESPACE = _NAMESPACE;
46
const static string Antecedent_role = "Antecedent";
47
const static char* Antecedent_classnames[] = {"OpenDRIM_ComputerSystem"};
48
const static string Antecedent_NAMESPACE = _NAMESPACE;
50
const static string Dependent_role = "Dependent";
51
const static char* Dependent_classnames[] = {"OpenDRIM_SSHProtocolService"};
52
const static string Dependent_NAMESPACE = _NAMESPACE;
54
class OpenDRIM_HostedSSHService {
58
Objectpath Antecedent;
59
bool Antecedent_isNULL;
62
bool Dependent_isNULL;
64
OpenDRIM_HostedSSHService() {
65
Antecedent_isNULL = true;
66
Dependent_isNULL = true;
69
~OpenDRIM_HostedSSHService() {}
71
string getKeys() const {
72
return CF_toLowCase(".Antecedent=\"" + CF_quoteString(Antecedent.toString()) + "\""".Dependent=\"" + CF_quoteString(Dependent.toString()) + "\"");
75
int getAntecedent(Objectpath& value) const {
76
if (Antecedent_isNULL==true)
82
int setAntecedent(const Objectpath& newValue) {
83
Antecedent = newValue;
84
Antecedent.setNamespace(Antecedent_NAMESPACE);
85
Antecedent_isNULL = false;
89
int getDependent(Objectpath& value) const {
90
if (Dependent_isNULL==true)
96
int setDependent(const Objectpath& newValue) {
98
Dependent.setNamespace(Dependent_NAMESPACE);
99
Dependent_isNULL = false;
105
#endif /*OPENDRIM_HOSTEDSSHSERVICE_H_*/