STAR++ v0.2.2
C++ implementation of STAR voting
Loading...
Searching...
No Matches
reference.h
Go to the documentation of this file.
1#ifndef REFERENCE_H
2#define REFERENCE_H
3
4// Shared Library Support
5#include "star/star_base_export.h"
6
7// Project Includes
8#include "star/election.h"
9#include "star/expectedelectionresult.h"
10#include "star/calculator.h"
11
12namespace Star
13{
14
16
25
26//-Namespace-Functions--------------------------------------------------------------------------------
27STAR_BASE_EXPORT ReferenceError electionsFromReferenceInput(QList<Election>& returnBuffer,
28 const QString& categoryConfigPath,
29 const QString& ballotBoxPath);
30
31STAR_BASE_EXPORT ReferenceError expectedResultsFromReferenceInput(QList<ExpectedElectionResult>& returnBuffer,
32 const QString& resultSetPath);
33
34STAR_BASE_EXPORT ReferenceError calculatorOptionsFromReferenceInput(Star::Calculator::Options& returnBuffer,
35 const QString& calcOptionsPath);
36}
37
38#endif // REFERENCE_H
QFlags< Option > Options
Definition calculator.h:34
The Star namespace is the main namespace through which all functionality of the STAR++ library is acc...
Definition calculator.cpp:21
ReferenceError calculatorOptionsFromReferenceInput(Star::Calculator::Options &returnBuffer, const QString &calcOptionsPath)
Definition reference.cpp:260
ReferenceError expectedResultsFromReferenceInput(QList< ExpectedElectionResult > &returnBuffer, const QString &resultSetPath)
Definition reference.cpp:243
ReferenceErrorType
Definition reference.h:15
ReferenceError electionsFromReferenceInput(QList< Election > &returnBuffer, const QString &categoryConfigPath, const QString &ballotBoxPath)
Definition reference.cpp:208
The ReferenceError struct is used to report errors while parsing election/results data in their refer...
Definition reference.h:18
QString errorDetails
Definition reference.h:21
ReferenceErrorType type
Definition reference.h:19
QString error
Definition reference.h:20
bool isValid()
Definition reference.h:23