source: branches/work_304/doc/DocAllMatchingIdsTable.h @ 489

Revision 489, 1.4 KB checked in by jls17, 6 years ago (diff)
  • fixed: in push-field actions with all-matching-id mapping, the source and target forms were switched
Line 
1//Copyright (C) 2014 John Luthgers| jls17
2//
3//This file is part of ARInside.
4//
5//    ARInside is free software: you can redistribute it and/or modify
6//    it under the terms of the GNU General Public License as published by
7//    the Free Software Foundation, version 2 of the License.
8//
9//    ARInside is distributed in the hope that it will be useful,
10//    but WITHOUT ANY WARRANTY; without even the implied warranty of
11//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12//    GNU General Public License for more details.
13//
14//    You should have received a copy of the GNU General Public License
15//    along with ARInside.  If not, see <http://www.gnu.org/licenses/>.
16
17#pragma once
18
19#include "../util/RefItem.h"
20
21// forward declarations
22class CARServerObject;
23
24// Generates html-table with all matching IDs of two forms
25class CDocAllMatchingIdsTable
26{
27public:
28        enum AllMatchingMode
29        {
30                AMM_PUSHFIELDS,
31                AMM_SETFIELDS
32        };
33
34public:
35        CDocAllMatchingIdsTable(const string& targetForm, const string& sourceForm, CARServerObject& obj, AllMatchingMode mode, int nAction, IfElseState ifElse, int rootLevel);
36        std::ostream& ToStream(std::ostream& strm);
37
38private:
39        std::string tableLeftTarget;
40        std::string tableRightSource;
41        CARServerObject &obj;
42        AllMatchingMode matchMode;
43        int nAction;
44        IfElseState ifElse;
45        int rootLevel;
46};
Note: See TracBrowser for help on using the repository browser.