Skip to content

Commit

Permalink
Merge pull request #1 from ConstantRobotics-Ltd/add-virtual-destructor
Browse files Browse the repository at this point in the history
Add virtual destructor
  • Loading branch information
ConstantRobotics authored Dec 14, 2023
2 parents 3252cb3 + ed67c9d commit 55e44a8
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/Frame
Binary file not shown.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# **ObjectDetector interface C++ library**

**v1.5.1**
**v1.6.1**



Expand Down Expand Up @@ -64,6 +64,7 @@
| 1.4.0 | 24.09.2023 | - Updated encode(...) and decode(...) methods of ObjectDetectorParams.<br />- Added decodeAndExecuteCommand(...) method.<br />- Added example of object detector implementation. |
| 1.5.0 | 26.09.2023 | - Signature of getParams(...) method changed. |
| 1.5.1 | 13.11.2023 | - Frame class updated. |
| 1.6.1 | 14.12.2023 | - Virtual destructor added.<br />- Frame class updated. |



Expand Down Expand Up @@ -109,6 +110,9 @@ class ObjectDetector
{
public:

/// Class destructor.
virtual ~ObjectDetector();

/// Get string of current library version.
static std::string getVersion();

Expand Down Expand Up @@ -175,7 +179,7 @@ std::cout << "ObjectDetector class version: " << ObjectDetector::getVersion() <<
Console output:

```bash
ObjectDetector class version: 1.4.0
ObjectDetector class version: 1.6.1
```


Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.13)
## LIBRARY-PROJECT
## name and version
###############################################################################
project(ObjectDetector VERSION 1.5.0 LANGUAGES CXX)
project(ObjectDetector VERSION 1.6.1 LANGUAGES CXX)



Expand Down
7 changes: 7 additions & 0 deletions src/ObjectDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@



cr::detector::ObjectDetector::~ObjectDetector()
{

}



std::string cr::detector::ObjectDetector::getVersion()
{
return OBJECT_DETECTOR_VERSION;
Expand Down
5 changes: 5 additions & 0 deletions src/ObjectDetector.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,11 @@ class ObjectDetector
{
public:

/**
* @brief Class destructor.
*/
virtual ~ObjectDetector();

/**
* @brief Get string of current library version.
* @return String of current library version.
Expand Down
6 changes: 3 additions & 3 deletions src/ObjectDetectorVersion.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define OBJECT_DETECTOR_MAJOR_VERSION 1
#define OBJECT_DETECTOR_MINOR_VERSION 5
#define OBJECT_DETECTOR_PATCH_VERSION 0
#define OBJECT_DETECTOR_MINOR_VERSION 6
#define OBJECT_DETECTOR_PATCH_VERSION 1

#define OBJECT_DETECTOR_VERSION "1.5.0"
#define OBJECT_DETECTOR_VERSION "1.6.1"

0 comments on commit 55e44a8

Please sign in to comment.