plptools
Loading...
Searching...
No Matches
rfsvfactory.cc
Go to the documentation of this file.
1
/*
2
* This file is part of plptools.
3
*
4
* Copyright (C) 1999 Matt J. Gumbley <matt@gumbley.demon.co.uk>
5
* Copyright (C) 2026 Jason Morley <hello@jbmorley.co.uk>
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License along
18
* along with this program; if not, see <https://www.gnu.org/licenses/>.
19
*
20
*/
21
#include "config.h"
22
23
#include "
rfsvfactory.h
"
24
25
#include "
ncpclient.h
"
26
#include "
rfsv.h
"
27
#include "
rfsv16.h
"
28
#include "
rfsv32.h
"
29
30
RFSVFactory::RFSVFactory
(
const
std::string &host,
int
port)
31
: host_(host)
32
, port_(port) {}
33
34
RFSVFactory::~RFSVFactory
() {}
35
36
RFSV
*
RFSVFactory::create
(
bool
reconnect,
Enum<ConnectionError>
*
error
) {
37
return
ncp_client::connect<RFSV, RFSV16, RFSV32>(
host_
,
port_
, reconnect,
error
);
38
}
Enum
Wrapper class featuring range-checking and string representation of enumerated values.
Definition:
Enum.h:135
RFSVFactory::host_
std::string host_
Definition:
rfsvfactory.h:64
RFSVFactory::port_
int port_
Definition:
rfsvfactory.h:65
RFSVFactory::create
RFSV * create(bool, Enum< ConnectionError > *error=nullptr)
Creates a new RFSV instance.
Definition:
rfsvfactory.cc:36
RFSVFactory::RFSVFactory
RFSVFactory(const std::string &host, int port)
Constructs a RFSVFactory.
Definition:
rfsvfactory.cc:30
RFSVFactory::~RFSVFactory
~RFSVFactory()
Delete the RFSVFactory, cleaning up any resources.
Definition:
rfsvfactory.cc:34
RFSV
Access remote file services of a Psion.
Definition:
rfsv.h:79
ncpclient.h
rfsv16.h
rfsv32.h
rfsv.h
rfsvfactory.h
error
static void error(int line)
Definition:
sismain.cpp:44
lib
rfsvfactory.cc
Generated by
1.9.5