DESERT 4.0.0
uwsc-tracker-module.h
Go to the documentation of this file.
1// Copyright (c) 2024 Regents of the SIGNET lab, University of Padova.
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions
6// are met:
7// 1. Redistributions of source code must retain the above copyright
8// notice, this list of conditions and the following disclaimer.
9// 2. Redistributions in binary form must reproduce the above copyright
10// notice, this list of conditions and the following disclaimer in the
11// documentation and/or other materials provided with the distribution.
12// 3. Neither the name of the University of Padova (SIGNET lab) nor the
13// names of its contributors may be used to endorse or promote products
14// derived from this software without specific prior written permission.
15//
16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
38#ifndef UWSCTRACK_MODULE_H
39#define UWSCTRACK_MODULE_H
40#include <list>
41#include <uwtracker-module.h>
42
48{
49public:
54
58 virtual ~UwSCTrackerModule() = default;
59
70 virtual int command(int argc, const char *const *argv) override;
71
77 virtual void recv(Packet *) override;
78
79protected:
81 std::list<Position> tracked_mines;
83};
84
85#endif // UWSCTRACK_MODULE_H
Definition uwsc-tracker-module.h:48
virtual ~UwSCTrackerModule()=default
virtual int command(int argc, const char *const *argv) override
Definition uwsc-tracker-module.cc:78
std::list< Position > tracked_mines
Definition uwsc-tracker-module.h:81
int leader_id
Definition uwsc-tracker-module.h:80
UwSCTrackerModule()
Definition uwsc-tracker-module.cc:70
virtual void recv(Packet *) override
Definition uwsc-tracker-module.cc:95
Definition uwtracker-module.h:71
Provides the definition of the class UWROV.