From 7a38c90563260546e9ca444e944ff13b6c116232 Mon Sep 17 00:00:00 2001
From: "leire.querejeta" <leire.querejeta@tecnalia.com>
Date: Mon, 10 Oct 2022 16:23:06 +0200
Subject: [PATCH] class api without commands library generator

---
 .../libreria_LQL/CMakeLists.txt               |   8 -
 .../libreria_LQL/commands.cpp                 | 134 -----------------
 serial_port_class_api/libreria_LQL/commands.h | 138 ------------------
 3 files changed, 280 deletions(-)
 delete mode 100644 serial_port_class_api/libreria_LQL/CMakeLists.txt
 delete mode 100644 serial_port_class_api/libreria_LQL/commands.cpp
 delete mode 100644 serial_port_class_api/libreria_LQL/commands.h

diff --git a/serial_port_class_api/libreria_LQL/CMakeLists.txt b/serial_port_class_api/libreria_LQL/CMakeLists.txt
deleted file mode 100644
index c003702..0000000
--- a/serial_port_class_api/libreria_LQL/CMakeLists.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-project (api)
-
-#set(commands_files
-#    ${CMAKE_CURRENT_SOURCE_DIR}/commands.cpp
-#    ${CMAKE_CURRENT_SOURCE_DIR}/commands.h
-#)
-#add_library(commands STATIC ${commands_files})
\ No newline at end of file
diff --git a/serial_port_class_api/libreria_LQL/commands.cpp b/serial_port_class_api/libreria_LQL/commands.cpp
deleted file mode 100644
index 3864457..0000000
--- a/serial_port_class_api/libreria_LQL/commands.cpp
+++ /dev/null
@@ -1,134 +0,0 @@
-/**
- * @file commands.cpp
- * @author Leire Querejeta Lomas <leire.querejeta@tecnalia.com>
- * @brief CLASS commands DANGER this file should be hide for Open API
- * @date 2022-10-10
- * 
- * @copyright Copyright 2020
- * Tecnalia Research & Innovation.
- * Distributed under the GNU GPL v3.
- * For full terms see https://www.gnu.org/licenses/gpl.txt
- */
-#include "commands.h"
-#define getName(var)  #var
-
-namespace commands
-{
-    std::string ClassCommands::CMD_ONSTIM = "stim on\r\n";
-    std::string ClassCommands::CMD_OFFSTIM = "stim off\r\n";
-    std::string ClassCommands::CMD_VELECSTIM = "stim ";
-
-    std::string ClassCommands::CMD_GETTIC = "tic\r\n";
-
-    std::string ClassCommands::CMD_CONFIGVELEC = "velec ";
-    std::string ClassCommands::CMD_CONFIGVELEC_NAME = " *name ";
-    std::string ClassCommands::CMD_CONFIGVELEC_PADS = " *pads ";
-    std::string ClassCommands::CMD_CONFIGVELEC_SELECTION = " *selected ";
-    std::string ClassCommands::CMD_CONFIGVELEC_SYNCHRONOUS = " *sync ";
-    std::string ClassCommands::CMD_CONFIGVELEC_CATHODE = "=C,";
-    std::string ClassCommands::CMD_CONFIGVELEC_ANODE = "=A,";
-    std::string ClassCommands::CMD_CONFIGVELEC_AMPLITUDE = " *amp ";
-    std::string ClassCommands::CMD_CONFIGVELEC_PULSEWIDTH = " *width ";
-
-    std::string ClassCommands::CMD_CONFIGPATTERN = "pattern ";
-    std::string ClassCommands::CMD_CONFIGPATTERN_PARAM1 = " clear";
-    std::string ClassCommands::CMD_CONFIGPATTERN_PARAM2 = " *newline ";
-    std::string ClassCommands::CMD_CONFIGPATTERN_PARAM3 = " register";
-
-    std::string ClassCommands::CMD_GETHV = "hv ?\r\n";
-    std::string ClassCommands::CMD_ONHV = "hv on\r\n";
-    std::string ClassCommands::CMD_OFFHV = "hv off\r\n";
-    std::string ClassCommands::CMD_SETHV = "hv ";
-
-    std::string ClassCommands::CMD_SD_OPEN_DIRECTORY = "sdcard ls\r\n";
-    std::string ClassCommands::CMD_SD_CHANGE_DIRECTORY = "sdcard cd ";
-    std::string ClassCommands::CMD_SD_PRINT_DIRECTORY = "sdcard pwd\r\n";
-    std::string ClassCommands::CMD_SD_DELETE_FILE = "sdcard rm ";
-    std::string ClassCommands::CMD_SD_CREATE_FILE = "sdcard cat > ";
-    std::string ClassCommands::CMD_SD_EDIT_FILE = "sdcard ed ";
-    std::string ClassCommands::CMD_SD_CREATE_DIRECTORY = "sdcard mkdir ";
-    std::string ClassCommands::CMD_SD_RENAME_FILE = "sdcard rename ";
-    std::string ClassCommands::CMD_SD_SAVE_BOOT = "sdcard save boot\r\n";
-
-    std::string ClassCommands::CMD_GETPROTOTYPE = "application ?\r\n";
-    std::string ClassCommands::CMD_SET_FES_PROTOTYPE = "application FES\r\n";
-    std::string ClassCommands::CMD_SET_TACTILITY_PROTOTYPE = "application TACTILITY\r\n";
-
-    std::string ClassCommands::CMD_GETDEVICENAME = "device ?\r\n";
-    std::string ClassCommands::CMD_SETDEVICENAME = "device ";
-
-    std::string ClassCommands::CMD_GETFW = "firmware ?\r\n";
-
-    std::string ClassCommands::CMD_GETHW = "hardware ?\r\n";
-
-    std::string ClassCommands::CMD_GETSDFUNCTION = "function ?\r\n";
-    std::string ClassCommands::CMD_SETSDFUNCTION = "function ";
-
-
-    std::string ClassCommands::CMD_GETFRQUENCY = "frequency ?\r\n";
-    std::string ClassCommands::CMD_SETFREQ = "frequency ";
-
-    std::string ClassCommands::CMD_GETLOGEVENTS = "logevents ?\r\n";
-    std::string ClassCommands::CMD_ONLOGEVENTS = "logevents on\r\n";
-    std::string ClassCommands::CMD_OFFLOGEVENTS = "logevents off\r\n";
-
-    std::string ClassCommands::CMD_GETSDNAME = "uname ?\r\n";
-    std::string ClassCommands::CMD_SETSDNAME = "uname ";
-
-    std::string ClassCommands::CMD_GETINTERVAL = "interval ?\r\n";
-    std::string ClassCommands::CMD_SETINTERVAL = "interval ";
-
-    std::string ClassCommands::CMD_GETBATTERY = "battery ?\r\n";
-
-    std::string ClassCommands::CMD_GETPULSE_VOLTAGES = "pulse *vpulse ?\r\n";
-    std::string ClassCommands::CMD_GETPULSE_INTENSITIES = "pulse *ipulse ?\r\n";
-    std::string ClassCommands::CMD_GETPULSE_NEGATIVEVOLTAGES = "pulse *lowside ?\r\n";
-    std::string ClassCommands::CMD_GETPULSE_POSITIVEVOLTAGES = "pulse *highside ?\r\n";
-    std::string ClassCommands::CMD_GETPULSE_AVERAGEINTENSITY = "pulse *iavg ?\r\n";
-
-    std::string ClassCommands::CMD_ONACQ = "acq on\r\n";
-    std::string ClassCommands::CMD_OFFACQ = "acq off\r\n";
-    std::string ClassCommands::CMD_NORMALACQ = "acq config *input normal\r\n";
-    std::string ClassCommands::CMD_TESTACQ = "acq config *input test\r\n";
-    std::string ClassCommands::CMD_STREAMONACQ = "acq stream on\r\n";
-    std::string ClassCommands::CMD_STREAMOFFACQ = "acq stream off\r\n";
-    std::string ClassCommands::CMD_ONIMPEDANCEACQ = "acq impedance on\r\n";
-    std::string ClassCommands::CMD_OFFIMPEDANCEACQ = "acq impedance off\r\n";
-    std::string ClassCommands::CMD_CONFIGACQ = "acq config";
-    std::string ClassCommands::CMD_CONFIGACQ_CHANNELS = " *channels ";
-    std::string ClassCommands::CMD_CONFIGACQ_FREQUENCY = " *freq ";
-    std::string ClassCommands::CMD_CONFIGACQ_GAIN = " *gain ";
-    std::string ClassCommands::CMD_CONFIGACQ_INPUT = " *input ";
-    std::string ClassCommands::CMD_CONFIGACQ_TYPE = " *type ";
-    std::string ClassCommands::CMD_CONFIGACQ_IMPEDANCEPOSITIVE = "acq impedance_config *channels positives\r\n";
-    std::string ClassCommands::CMD_CONFIGACQ_IMPEDANCENEGATIVE = "acq impedance_config *channels negatives\r\n";
-    std::string ClassCommands::CMD_CONFIGACQ_LEADOFF_ON = "acq leadoff on\r\n";
-    std::string ClassCommands::CMD_CONFIGACQ_LEADOFF_OFF = "acq leadoff off\r\n";
-    std::string ClassCommands::CMD_CONFIGACQ_SETLEADOFF = "acq leadoff_config *current ";
-
-    std::string ClassCommands::CMD_GETSTIMTIME = "time ?\r\n";
-
-    std::string ClassCommands::CMD_GETBUZZER = "buzzer *tempo ?\r\n";
-    std::string ClassCommands::CMD_SETBUZZER = "buzzer *tempo ";
-    std::string ClassCommands::CMD_PLAYBUZZER = "buzzer *play \r\n";
-
-    std::string ClassCommands::CMD_STARTFES = "iam DESKTOP\r\n";
-    std::string ClassCommands::CMD_STARTTACTILITY = "iam TACTILITY\r\n";
-    std::string ClassCommands::CMD_STARTCOMMUNICATION = "iam ";
-
-    std::string ClassCommands::CMD_GETLOGERRORS = "log errors ?\r\n";
-    std::string ClassCommands::CMD_OPENLOGERRORS = "log open\r\n";
-    std::string ClassCommands::CMD_CLOSELOGERRORS = "log close\r\n";
-    
-    std::string ClassCommands::CMD_SWITCHOFF = "shutdown\r\n";
-
-    std::string ClassCommands::CMD_GETRTC = "rtc ?\r\n";
-    std::string ClassCommands::CMD_SETRTCDATE = "rtc *date ";
-    std::string ClassCommands::CMD_SETRTCTIME = "rtc *time ";
-
-    std::string ClassCommands::CMD_PING = "ping\r\n";
-    std::string ClassCommands::CMD_HELP = "help\r\n";
-
-    std::string ClassCommands::CMD_AUX = " \r\n";
-    std::string ClassCommands::CMD_AUX2 = " ?";
-}
\ No newline at end of file
diff --git a/serial_port_class_api/libreria_LQL/commands.h b/serial_port_class_api/libreria_LQL/commands.h
deleted file mode 100644
index 0bdaaf5..0000000
--- a/serial_port_class_api/libreria_LQL/commands.h
+++ /dev/null
@@ -1,138 +0,0 @@
-/**
- * @file commands.h
- * @author Leire Querejeta Lomas <leire.querejeta@tecnalia.com>
- * @brief headers for CLASS commands
- * @date 2022-10-10
- * 
- * @copyright Copyright 2020
- * Tecnalia Research & Innovation.
- * Distributed under the GNU GPL v3.
- * For full terms see https://www.gnu.org/licenses/gpl.txt
- */
-#pragma once
-#include <string>
-
-namespace commands
-{
-    class ClassCommands
-    {
-    public:
-
-        static std::string ClassCommands::CMD_ONSTIM;
-        static std::string ClassCommands::CMD_OFFSTIM;
-        static std::string ClassCommands::CMD_VELECSTIM;
-
-        static std::string ClassCommands::CMD_GETTIC;
-
-        static std::string ClassCommands::CMD_CONFIGVELEC;
-        static std::string ClassCommands::CMD_CONFIGVELEC_NAME;
-        static std::string ClassCommands::CMD_CONFIGVELEC_PADS;
-        static std::string ClassCommands::CMD_CONFIGVELEC_SELECTION;
-        static std::string ClassCommands::CMD_CONFIGVELEC_SYNCHRONOUS;
-        static std::string ClassCommands::CMD_CONFIGVELEC_CATHODE;
-        static std::string ClassCommands::CMD_CONFIGVELEC_ANODE;
-        static std::string ClassCommands::CMD_CONFIGVELEC_AMPLITUDE;
-        static std::string ClassCommands::CMD_CONFIGVELEC_PULSEWIDTH;
-
-        static std::string ClassCommands::CMD_CONFIGPATTERN;
-        static std::string ClassCommands::CMD_CONFIGPATTERN_PARAM1;
-        static std::string ClassCommands::CMD_CONFIGPATTERN_PARAM2;
-        static std::string ClassCommands::CMD_CONFIGPATTERN_PARAM3;
-
-        static std::string ClassCommands::CMD_GETHV;
-        static std::string ClassCommands::CMD_ONHV;
-        static std::string ClassCommands::CMD_OFFHV;
-        static std::string ClassCommands::CMD_SETHV;
-
-        static std::string ClassCommands::CMD_SD_OPEN_DIRECTORY;
-        static std::string ClassCommands::CMD_SD_CHANGE_DIRECTORY;
-        static std::string ClassCommands::CMD_SD_PRINT_DIRECTORY;
-        static std::string ClassCommands::CMD_SD_DELETE_FILE;
-        static std::string ClassCommands::CMD_SD_CREATE_FILE;
-        static std::string ClassCommands::CMD_SD_EDIT_FILE;
-        static std::string ClassCommands::CMD_SD_CREATE_DIRECTORY;
-        static std::string ClassCommands::CMD_SD_RENAME_FILE;
-        static std::string ClassCommands::CMD_SD_SAVE_BOOT;
-
-        static std::string ClassCommands::CMD_GETPROTOTYPE;
-        static std::string ClassCommands::CMD_SET_FES_PROTOTYPE;
-        static std::string ClassCommands::CMD_SET_TACTILITY_PROTOTYPE;
-
-        static std::string ClassCommands::CMD_GETDEVICENAME;
-        static std::string ClassCommands::CMD_SETDEVICENAME;
-
-        static std::string ClassCommands::CMD_GETFW;
-
-        static std::string ClassCommands::CMD_GETHW;
-
-        static std::string ClassCommands::CMD_GETSDFUNCTION;
-        static std::string ClassCommands::CMD_SETSDFUNCTION;
-
-        static std::string ClassCommands::CMD_GETFRQUENCY;
-        static std::string ClassCommands::CMD_SETFREQ;
-
-        static std::string ClassCommands::CMD_GETLOGEVENTS;
-        static std::string ClassCommands::CMD_ONLOGEVENTS;
-        static std::string ClassCommands::CMD_OFFLOGEVENTS;
-
-        static std::string ClassCommands::CMD_GETSDNAME;
-        static std::string ClassCommands::CMD_SETSDNAME;
-
-        static std::string ClassCommands::CMD_GETINTERVAL;
-        static std::string ClassCommands::CMD_SETINTERVAL;
-
-        static std::string ClassCommands::CMD_GETBATTERY;
-
-        static std::string ClassCommands::CMD_GETPULSE_VOLTAGES;
-        static std::string ClassCommands::CMD_GETPULSE_INTENSITIES;
-        static std::string ClassCommands::CMD_GETPULSE_NEGATIVEVOLTAGES;
-        static std::string ClassCommands::CMD_GETPULSE_POSITIVEVOLTAGES;
-        static std::string ClassCommands::CMD_GETPULSE_AVERAGEINTENSITY;
-
-        static std::string ClassCommands::CMD_ONACQ;
-        static std::string ClassCommands::CMD_OFFACQ;
-        static std::string ClassCommands::CMD_NORMALACQ;
-        static std::string ClassCommands::CMD_TESTACQ;
-        static std::string ClassCommands::CMD_STREAMONACQ;
-        static std::string ClassCommands::CMD_STREAMOFFACQ;
-        static std::string ClassCommands::CMD_ONIMPEDANCEACQ;
-        static std::string ClassCommands::CMD_OFFIMPEDANCEACQ;
-        static std::string ClassCommands::CMD_CONFIGACQ;
-        static std::string ClassCommands::CMD_CONFIGACQ_CHANNELS;
-        static std::string ClassCommands::CMD_CONFIGACQ_FREQUENCY;
-        static std::string ClassCommands::CMD_CONFIGACQ_GAIN;
-        static std::string ClassCommands::CMD_CONFIGACQ_INPUT;
-        static std::string ClassCommands::CMD_CONFIGACQ_TYPE;
-        static std::string ClassCommands::CMD_CONFIGACQ_IMPEDANCEPOSITIVE;
-        static std::string ClassCommands::CMD_CONFIGACQ_IMPEDANCENEGATIVE;
-        static std::string ClassCommands::CMD_CONFIGACQ_LEADOFF_ON;
-        static std::string ClassCommands::CMD_CONFIGACQ_LEADOFF_OFF;
-        static std::string ClassCommands::CMD_CONFIGACQ_SETLEADOFF;
-
-        static std::string ClassCommands::CMD_GETSTIMTIME;
-
-        static std::string ClassCommands::CMD_GETBUZZER;
-        static std::string ClassCommands::CMD_SETBUZZER;
-        static std::string ClassCommands::CMD_PLAYBUZZER;
-
-        static std::string ClassCommands::CMD_STARTFES;
-        static std::string ClassCommands::CMD_STARTTACTILITY;
-        static std::string ClassCommands::CMD_STARTCOMMUNICATION;
-
-        static std::string ClassCommands::CMD_GETLOGERRORS;
-        static std::string ClassCommands::CMD_OPENLOGERRORS;
-        static std::string ClassCommands::CMD_CLOSELOGERRORS;
-
-        static std::string ClassCommands::CMD_SWITCHOFF;
-
-        static std::string ClassCommands::CMD_GETRTC;
-        static std::string ClassCommands::CMD_SETRTCDATE;
-        static std::string ClassCommands::CMD_SETRTCTIME;
-
-        static std::string ClassCommands::CMD_PING;
-        static std::string ClassCommands::CMD_HELP;
-
-        static std::string ClassCommands::CMD_AUX;
-        static std::string ClassCommands::CMD_AUX2;
-    };
-}
\ No newline at end of file
-- 
GitLab