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.
Diff: ICE-Application/src/ConfigurationHandler/Algorithms/CompositeAlgorithm.h
- Revision:
- 2:02cb20446785
- Parent:
- 1:b2e90cda7a5a
diff -r b2e90cda7a5a -r 02cb20446785 ICE-Application/src/ConfigurationHandler/Algorithms/CompositeAlgorithm.h --- a/ICE-Application/src/ConfigurationHandler/Algorithms/CompositeAlgorithm.h Tue Jan 24 19:06:45 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -/****************************************************************************** - * - * File: CompositeAlgorithm.h - * Desciption: interface file for the ICE Composite Algorithm - * - *****************************************************************************/ -#ifndef COMPOSITEALGORITHM_H -#define COMPOSITEALGORITHM_H - -#include <stdio.h> -#include <string> - -class CompositeAlgorithm -{ -private: - std::string controlFile; // the control file - std::string id; // algorithm id - std::string tag; // input (real or virtual) - std::string opr; // right operand - std::string op; // operation to perform (+, -, ==, etc.) - std::string resultTrue; // what to do when true - std::string resultFalse; // what to do when false - - bool validateControlData(const char *buf); - void copyControlData(const char *buf); -public: - CompositeAlgorithm() {} - ~CompositeAlgorithm() { - printf("%s invoked", __func__); - } - - bool load(const std::string); - - void display(void); - - std::string getId(void) const { - return id; - } - std::string getTag(void) const { - return tag; - } - std::string getOpr(void) const { return opr; } - std::string getOp(void) const { return op; } - std::string getResultTrue(void) const { return resultTrue; } - std::string getResultFalse(void) const { return resultFalse; } -}; - -#endif -