Skip to content

Commit

Permalink
Updated to use better ODAPI version management
Browse files Browse the repository at this point in the history
  • Loading branch information
jongough committed Dec 26, 2018
1 parent d45e0f7 commit 44447c1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 28 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ SET(CPACK_PACKAGE_CONTACT "Jon Gough")

SET(VERSION_MAJOR "1")
SET(VERSION_MINOR "0")
SET(VERSION_PATCH "16")
SET(VERSION_DATE "14/12/2018")
SET(VERSION_PATCH "18")
SET(VERSION_DATE "26/12/2018")

SET(BUNDLE_DATA FALSE)
SET( CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build" )
Expand Down
40 changes: 14 additions & 26 deletions extinclude/ODAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,21 @@ enum {
TEXTPOINT_TEXT_BACKGROUND_TRANSPARANCY_DEFAULT = -1
};

struct ODAPIVersion_t {
int ODAPIVersionMajor;
int ODAPIVersionMinor;
ODAPIVersion_t() : ODAPIVersionMajor(ODAPI_VERSION_MAJOR), ODAPIVersionMinor(ODAPI_VERSION_MINOR) {}
};

struct HyperLinkList_t {
wxString sDescription;
wxString sLink;
wxString sType;
};

struct FindPointInAnyBoundary_t {
double dLat;
double dLon;
double dLat;
double dLon;
wxString sBoundaryType;
wxString sBoundaryState;
wxString sName;
Expand All @@ -107,10 +113,7 @@ struct FindClosestBoundaryLineCrossing_t {
wxString sBoundaryObjectType;
};

struct CreateBoundaryPoint_t {
int ODAPIVersionMajor;
int ODAPIVersionMinor;
CreateBoundaryPoint_t() : ODAPIVersionMajor(ODAPI_VERSION_MAJOR), ODAPIVersionMinor(ODAPI_VERSION_MINOR) {}
struct CreateBoundaryPoint_t : public ODAPIVersion_t {
wxString name;
wxString iconname;
double lat;
Expand All @@ -127,10 +130,7 @@ struct CreateBoundaryPoint_t {
std::list <HyperLinkList_t *> BoundaryPointHyperLinkList;
};

struct CreateBoundary_t {
int ODAPIVersionMajor;
int ODAPIVersionMinor;
CreateBoundary_t() : ODAPIVersionMajor(ODAPI_VERSION_MAJOR), ODAPIVersionMinor(ODAPI_VERSION_MINOR) {}
struct CreateBoundary_t : public ODAPIVersion_t {
wxString name;
int type;
bool pathIsActive;
Expand All @@ -144,10 +144,7 @@ struct CreateBoundary_t {
std::list <CreateBoundaryPoint_t *> BoundaryPointsList;
};

struct CreateTextPoint_t {
int ODAPIVersionMajor;
int ODAPIVersionMinor;
CreateTextPoint_t() : ODAPIVersionMajor(ODAPI_VERSION_MAJOR), ODAPIVersionMinor(ODAPI_VERSION_MINOR) {}
struct CreateTextPoint_t : public ODAPIVersion_t{
wxString name; //Point name
wxString iconname; //Icon Name
double lat;
Expand Down Expand Up @@ -175,26 +172,17 @@ struct CreateTextPoint_t {
bool temporary;
};

struct DeleteTextPoint_t {
int ODAPIVersionMajor;
int ODAPIVersionMinor;
DeleteTextPoint_t() : ODAPIVersionMajor(ODAPI_VERSION_MAJOR), ODAPIVersionMinor(ODAPI_VERSION_MINOR) {}
struct DeleteTextPoint_t : public ODAPIVersion_t {
wxString GUID;
};

struct AddPointIcon_t {
int ODAPIVersionMajor;
int ODAPIVersionMinor;
AddPointIcon_t() : ODAPIVersionMajor(ODAPI_VERSION_MAJOR), ODAPIVersionMinor(ODAPI_VERSION_MINOR) {}
struct AddPointIcon_t : ODAPIVersion_t {
wxBitmap PointIcon;
wxString PointIconName;
wxString PointIconDescription;
};

struct DeletePointIcon_t {
int ODAPIVersionMajor;
int ODAPIVersionMinor;
DeletePointIcon_t() : ODAPIVersionMajor(ODAPI_VERSION_MAJOR), ODAPIVersionMinor(ODAPI_VERSION_MINOR) {}
struct DeletePointIcon_t :ODAPIVersion_t {
wxString PointIconName;
};

Expand Down

0 comments on commit 44447c1

Please sign in to comment.