-
Notifications
You must be signed in to change notification settings - Fork 125
/
FABrResultCA.h
34 lines (25 loc) · 1010 Bytes
/
FABrResultCA.h
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
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
#ifndef _FA_BRRESULTCA_H_
#define _FA_BRRESULTCA_H_
#include "FAConfig.h"
///
/// Interface for reading results of extracting brackets
///
class FABrResultCA {
public:
/// returns an array of all added BrId --> [<From, To>, ... , <From, To>]
/// (returns -1 if no BrId bracket was extracted)
virtual const int GetRes (const int BrId, const int ** ppData) const = 0;
/// returns next result BrId --> [<From, To>, ... , <From, To>]
/// (the initial value of BrId should be -1)
/// (returns -1 if no BrId bracket was extracted)
virtual const int GetNextRes (int * pBrId, const int ** ppData) const = 0;
/// returns first added BrId --> <From, To> relation
/// (returns -1 if no BrId bracket was extracted)
virtual const int GetFrom (const int BrId) const = 0;
virtual const int GetTo (const int BrId) const = 0;
};
#endif