MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/systemic/FlushString.hh
2024-06-07 11:12:56 +03:00

45 lines
1.1 KiB
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.

/*
* FlushString.hh
*
* Created on: 25 янв. 2021 г.
* Author: titov
*/
#ifndef UMLIBRARY_SYSTEMIC_FLUSHSTRING_HH_
#define UMLIBRARY_SYSTEMIC_FLUSHSTRING_HH_
#include "CustomParameters.hpp"
#include "SystemException.hh"
namespace systemic {
class FlushString {
systemic::CustomParameters & cp;
const std::pair<const char *, std::size_t> string;
const systemic::CustomParameters::ProviderId provider_id;
const systemic::CustomParameters::Id parameter_id;
public:
struct FlushException : public SystemException {
std::size_t id() const noexcept;
std::pair<const char *, std::size_t> binary() const noexcept;
const char * what() const noexcept;
const systemic::CustomParameters::Id parameter_id;
FlushException( systemic::CustomParameters::Id parameter_id );
};
FlushString( systemic::CustomParameters & cp, std::pair<const char *, std::size_t> string,
systemic::CustomParameters::ProviderId provider_id, systemic::CustomParameters::Id parameter_id );
void flush();
};
}
#endif /* UMLIBRARY_SYSTEMIC_FLUSHSTRING_HH_ */