| [371385f] | 1 | /* json.h |
|---|
| [48787a9] | 2 | * Export from Aven as JSON. |
|---|
| 3 | */ |
|---|
| 4 | |
|---|
| [371385f] | 5 | /* Copyright (C) 2015,2016,2024 Olly Betts |
|---|
| [48787a9] | 6 | * |
|---|
| 7 | * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | * it under the terms of the GNU General Public License as published by |
|---|
| 9 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 10 | * (at your option) any later version. |
|---|
| 11 | * |
|---|
| 12 | * This program is distributed in the hope that it will be useful, |
|---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | * GNU General Public License for more details. |
|---|
| 16 | * |
|---|
| 17 | * You should have received a copy of the GNU General Public License |
|---|
| [0b99107] | 18 | * along with this program; if not, see |
|---|
| 19 | * <https://www.gnu.org/licenses/>. |
|---|
| [48787a9] | 20 | */ |
|---|
| 21 | |
|---|
| 22 | #include "exportfilter.h" |
|---|
| 23 | |
|---|
| 24 | class JSON : public ExportFilter { |
|---|
| [a3f83057] | 25 | bool in_segment = false; |
|---|
| [48787a9] | 26 | public: |
|---|
| [a3f83057] | 27 | JSON() { } |
|---|
| [84b86b5] | 28 | const int * passes() const override; |
|---|
| [696db01] | 29 | void header(const char *, time_t, |
|---|
| [48787a9] | 30 | double min_x, double min_y, double min_z, |
|---|
| [84b86b5] | 31 | double max_x, double max_y, double max_z) override; |
|---|
| 32 | void line(const img_point *, const img_point *, unsigned, bool) override; |
|---|
| [371385f] | 33 | void label(const img_point *, const wxString&, int, int) override; |
|---|
| [84b86b5] | 34 | void footer() override; |
|---|
| [48787a9] | 35 | }; |
|---|