Conference Registration 2024.07.18.04
Loading...
Searching...
No Matches
registrationlistreader.h
Go to the documentation of this file.
1
9#ifndef REGISTRATIONLISTREADER_H
10#define REGISTRATIONLISTREADER_H
11
12#include "filereader.h"
13#include "registration.h"
14
15#include <QDomDocument>
16#include <QList>
17#include <QXmlStreamReader>
18
19
26{
27public:
32 explicit RegistrationListReader(const QString &fileName);
33
38 QList<Registration*> read();
39
40private:
46 Registration *parseRegistrationElement(const QDomElement &element);
47
48private:
49 QString m_FileName;
50 FileReader m_FileReader;
51};
52
53#endif // REGISTRATIONLISTREADER_H
The FileReader class reads the contents of a file.
Definition filereader.h:21
The Registration class represents a registration for an event.
Definition registration.h:24
The RegistrationListReader class reads a list of registrations from an XML file.
Definition registrationlistreader.h:26
RegistrationListReader(const QString &fileName)
Constructs a RegistrationListReader object with the specified file name.
Definition registrationlistreader.cpp:18
QList< Registration * > read()
Reads the list of registrations from the XML file.
Definition registrationlistreader.cpp:25