Beamlib 3.1.2
This is the Beam C++ class library.
Loading...
Searching...
No Matches
BFileData.h
Go to the documentation of this file.
1/*******************************************************************************
2 * BFileData.h BEAM Data access class
3 * T.Barnaby, BEAM Ltd, 2012-01-10
4 * Copyright (c) 2022 All Right Reserved, Beam Ltd, https://www.beam.ltd.uk
5 * For license see LICENSE.txt at the root of the beamlib source tree.
6 *******************************************************************************
7 */
8#ifndef BFileData_H
9#define BFileData_H 1
10
11#include <BError.h>
12
14class BFileData : public BList<BStringList> {
15public:
16 BError open(BString filename);
17
18 BError getNextId(int& id);
19 BError find(int id, BStringList& csvList);
20 BError write(int id, BStringList& csvList);
21 BError del(int id);
22
23private:
24 BError read();
25 BError write();
26 BString ofilename;
27};
28
29#endif
Error return class. This class is used to return the error status from a function....
Definition: BError.h:31
A class to implement a data storage file.
Definition: BFileData.h:14
BError open(BString filename)
Definition: BFileData.cpp:12
BError find(int id, BStringList &csvList)
Definition: BFileData.cpp:72
BError del(int id)
Definition: BFileData.cpp:112
BError write(int id, BStringList &csvList)
Definition: BFileData.cpp:86
BError getNextId(int &id)
Definition: BFileData.cpp:57
Template based list class.
Definition: BList.h:31
This class stores and manipulates ASCII strings.
Definition: BString.h:20