mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-13 08:55:39 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -33,21 +33,21 @@ using namespace lpc43xx;
|
|||
#define LOG_ROOT_DIR "LOGS"
|
||||
|
||||
class LogFile {
|
||||
public:
|
||||
Optional<File::Error> append(const std::filesystem::path& filename) {
|
||||
auto result = ensure_directory(filename.parent_path());
|
||||
if (result.code())
|
||||
return { result };
|
||||
|
||||
return file.append(filename);
|
||||
}
|
||||
public:
|
||||
Optional<File::Error> append(const std::filesystem::path& filename) {
|
||||
auto result = ensure_directory(filename.parent_path());
|
||||
if (result.code())
|
||||
return {result};
|
||||
|
||||
Optional<File::Error> write_entry(const rtc::RTC& datetime, const std::string& entry);
|
||||
return file.append(filename);
|
||||
}
|
||||
|
||||
private:
|
||||
File file { };
|
||||
Optional<File::Error> write_entry(const rtc::RTC& datetime, const std::string& entry);
|
||||
|
||||
Optional<File::Error> write_line(const std::string& message);
|
||||
private:
|
||||
File file{};
|
||||
|
||||
Optional<File::Error> write_line(const std::string& message);
|
||||
};
|
||||
|
||||
#endif/*__LOG_FILE_H__*/
|
||||
#endif /*__LOG_FILE_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue