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
30RFSVFactory::RFSVFactory(const std::string &host, int port)
31: host_(host)
32, port_(port) {}
33
35
Wrapper class featuring range-checking and string representation of enumerated values.
Definition Enum.h:135
std::string host_
Definition rfsvfactory.h:64
RFSV * create(bool, Enum< ConnectionError > *error=nullptr)
Creates a new RFSV instance.
RFSVFactory(const std::string &host, int port)
Constructs a RFSVFactory.
~RFSVFactory()
Delete the RFSVFactory, cleaning up any resources.
Access remote file services of a Psion.
Definition rfsv.h:79
Client * connect(const std::string &host, int port, bool waitForDevice, Enum< ConnectionError > *error)
Create a new NCP client instance, selecting the appropriate subclass based on the device type reporte...
Definition ncpclient.h:53
static void error(int line)
Definition sismain.cpp:44