Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mDot_LoRa_Sensornode
Fork of libmDot by
Diff: Utils.h
- Revision:
- 9:ebf682e616d0
- Parent:
- 8:57978a837b2d
- Child:
- 10:0b4eb17d07ae
--- a/Utils.h Tue Aug 18 09:11:29 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-/************************************************
- * MultiTech MTDOT Library
- * Copyright (c) 2015 MultiTech Systems
- *
- * See LICENSE file for license information
- ***********************************************/
-
-#ifndef UTILS_H
-#define UTILS_H
-
-#include <string>
-
-//Defines a max function that can be used.
-inline int mts_max(int a, int b) { return a > b ? a : b; }
-
-//Defines a min function that can be used.
-inline int mts_min(int a, int b) { return a < b ? a : b; }
-
-///An enumeration for relational operators
-enum RelationalOperator {
- GREATER, LESS, EQUAL, GREATER_EQUAL, LESS_EQUAL
-};
-
-/** A static method for getting a string representation for the RelationalOperator
-* enumeration.
-*
-* @param relationalOperator a RelationalOperator enumeration.
-* @returns the enumeration name as a string.
-*/
-static std::string getRelationalOperatorNames(RelationalOperator relationalOperator)
-{
- switch(relationalOperator) {
- case GREATER:
- return "GREATER";
- case LESS:
- return "LESS";
- case EQUAL:
- return "EQUAL";
- case GREATER_EQUAL:
- return "GREATER_EQUAL";
- case LESS_EQUAL:
- return "LESS_EQUAL";
- default:
- return "UNKNOWN ENUM";
- }
-}
-
-#endif
