You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.4 KiB
53 lines
1.4 KiB
/*
|
|
* Copyright (C) 2021-2022 by Geoffrey Merck F4FXL / KC3FRA
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#include "APRSFrame.h"
|
|
|
|
CAPRSFrame::CAPRSFrame() :
|
|
m_source(),
|
|
m_destination(),
|
|
m_path(),
|
|
m_body(),
|
|
m_type(APFT_UNKNOWN)
|
|
{
|
|
|
|
}
|
|
|
|
CAPRSFrame::CAPRSFrame(const std::string& source, const std::string& destination, const std::vector<std::string>& path, const std::string& body, APRS_FRAME_TYPE type) :
|
|
m_source(source),
|
|
m_destination(destination),
|
|
m_path(),
|
|
m_body(body),
|
|
m_type(type)
|
|
{
|
|
m_path.assign(path.begin(), path.end());
|
|
}
|
|
|
|
CAPRSFrame::~CAPRSFrame()
|
|
{
|
|
m_path.clear();
|
|
}
|
|
|
|
void CAPRSFrame::clear()
|
|
{
|
|
m_source.clear();
|
|
m_destination.clear();
|
|
m_path.clear();
|
|
m_body.clear();
|
|
m_type = APFT_UNKNOWN;
|
|
} |