-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathOperSpecSearchResult.h
More file actions
38 lines (27 loc) · 866 Bytes
/
OperSpecSearchResult.h
File metadata and controls
38 lines (27 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef OPERSPECSEARCHRESULT_H
#define OPERSPECSEARCHRESULT_H
#include "MmlOperSpec.h"
#include "Helpers.h"
#include <QStringList>
class OperSpecSearchResult
{
public:
OperSpecSearchResult();
~OperSpecSearchResult();
const MmlOperSpec *prefix_form,
*infix_form,
*postfix_form;
const MmlOperSpec *&getForm( Mml::FormType form );
bool haveForm( const Mml::FormType &form )
{
return getForm( form ) != 0;
}
void addForm( const MmlOperSpec *spec )
{
getForm( spec->form ) = spec;
}
static const MmlOperSpec *searchOperSpecData( const QString &name );
static OperSpecSearchResult _mmlFindOperSpec( const QStringList &name_list, Mml::FormType form );
static const MmlOperSpec *mmlFindOperSpec( const QString &text, Mml::FormType form );
};
#endif // OPERSPECSEARCHRESULT_H