Files
dm-cli/dm-cli/Deals.hpp
Vladimir N. Korotenko 3585739fe6 Complite action added
2025-11-15 17:07:48 +03:00

37 lines
946 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef _DEALS_
#define _DEALS_
#include <string>
#include "InputParser.hpp"
class Deals {
public:
/// @brief Конструктор
/// @param parser - парсер аргументов
/// @param isRussian - вывод справки на русском
Deals(const InputParser& parser, const bool isRussian, const std::string address, bool isDebug);
int Process();
private:
InputParser parser;
bool isRussian;
std::string address;
bool isDebug;
/// @brief Получение справки о параметрах команды
int HelpCreate() const;
int HelpDealStatus() const;
int HelpDealComplete() const;
int HelpDealCancel() const;
int HelpDealNegative() const;
int Update();
int Create();
int Status();
std::string CommonStatus();
int Complite();
int Cancel();
int Negative();
std::string GetVal(const std::string first,const std::string second);
std::string GetDate(const std::string date);
};
#endif