blob: 3d88003742f7d2e8cd01a37b78b8b12c729da981 [file] [log] [blame]
// Copyright (C) 2015 The Android Open Source Project
//
// This software is licensed under the terms of the GNU General Public
// License version 2, as published by the Free Software Foundation, and
// may be copied, distributed, and modified under those terms.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
#pragma once
#include "android/gps/GpsFix.h"
class GpxParser {
public:
/* Parses a given .gpx file at |filePath| and extracts all contained GPS
* fixes into |*fixes|.
*
* Returns true on success, false otherwise. If false is returned, |*error|
* is set to a string describing the error.
*/
static bool parseFile(const char *filePath, GpsFixArray *fixes, std::string *error);
};