Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
SimpleNodeInfoMockUserFile.hxx
Go to the documentation of this file.
1
37#ifndef _OPENLCB_SIMPLENODEINFOMOCKUSERFILE_HXX_
38#define _OPENLCB_SIMPLENODEINFOMOCKUSERFILE_HXX_
39
40#include "SimpleNodeInfo.hxx"
41#ifdef __FreeRTOS__
43#endif
44
45#ifndef __WINNT__
46#include "os/TempFile.hxx"
47
48namespace openlcb {
49
59{
60public:
61#ifdef __FreeRTOS__
62 static constexpr const char* snip_user_file_path = "/etc/snip_user_data";
63#else
64 static char snip_user_file_path[128];
65#endif
66 MockSNIPUserFile(const char *user_name,
67 const char *user_description);
68
70
71private:
72#ifdef __FreeRTOS__
74 RamDisk userFile_;
75#else
76 TempFile userFile_;
77#endif
78};
79
80} // namespace openlcb
81
82#endif // !winnt
83#endif // _OPENLCB_SIMPLENODEINFOMOCKUSERFILE_HXX_
A simple device driver that reads/write data from a block of memory in a typed array either staticall...
Definition RamDisk.hxx:153
This class creates a temporary file for the test, and removes it when the test is done.
Definition TempFile.hxx:84
Helper class for mock implementations.
Structure representing the layout of the memory space for Simple Node Identification user-editable da...