MotorControlModuleSDFM_TMS3.../Projects/EFC_Application/UMLibrary/systemic/FlushString.hh

45 lines
1.1 KiB
C++

/*
* 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_ */