rasdaman complete source
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
rascontrol
raspasswd.hh
Go to the documentation of this file.
1
/*
2
* This file is part of rasdaman community.
3
*
4
* Rasdaman community is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* Rasdaman community is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16
*
17
* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18
rasdaman GmbH.
19
*
20
* For more information please see <http://www.rasdaman.org>
21
* or contact Peter Baumann via <baumann@rasdaman.com>.
22
/
36
#ifndef RASPASSWD_HH
37
#define RASPASSWD_HH
38
39
#include<stdio.h>
40
#include<errno.h>
41
#include<stdlib.h>
42
#include<unistd.h>
43
#include<sys/types.h>
44
#include<sys/socket.h>
45
#include<netinet/in.h>
46
#include<netdb.h>
47
#include<iostream>
48
#include<string.h>
49
#include <string>
50
51
#include "commline/cmlparser.hh"
52
53
#include "../rasmgr/ras_crypto.hh"
54
#include "rasmgr_utils_conf.hh"
55
56
using namespace std;
57
58
void printCommandLineHelp();
59
60
bool exitbyerror(char*);
61
62
const char* getPasswdKeyboard(const char*text,char*dest);
63
bool execute(const char *message);
64
65
class RasPasswdConfig:public ConfigurationBase
66
{
67
public:
68
RasPasswdConfig();
69
70
// false means program shouldn't continue
71
bool interpretArguments(int argc, char **argv);
72
73
const char* getRasMgrHost();
74
int getRasMgrPort();
75
// void printDebugInfo();
76
private:
77
78
void printHelp();
79
//bool paramError();
80
81
char rasmgrHost[100];
82
int rasmgrPort;
83
84
//-- parameters of this program
85
CommandLineParser &cmlInter;
86
CommandLineParameter &cmlHost, &cmlPort, &cmlHelp;
87
};
88
89
#endif
Generated on Sat Mar 7 2015 23:57:58 for rasdaman complete source by
1.8.8