dropshell release 2025.0518.1355
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
This commit is contained in:
@ -6,6 +6,8 @@
|
||||
#include <vector>
|
||||
#include <ostream>
|
||||
|
||||
namespace dropshell {
|
||||
|
||||
/*
|
||||
|
||||
output.hpp and output.cpp - simple output helpers.
|
||||
@ -62,16 +64,11 @@ enum class sColour {
|
||||
WARNING,
|
||||
ERROR
|
||||
};
|
||||
std::ostream& colourstream(sColour colour);
|
||||
|
||||
// Set colour for a stream
|
||||
void SetColour(sColour colour, std::ostream& os = std::cerr);
|
||||
|
||||
// Helper print functions
|
||||
void PrintDebug(const std::string& msg);
|
||||
void PrintInfo(const std::string& msg);
|
||||
void PrintWarning(const std::string& msg);
|
||||
void PrintError(const std::string& msg);
|
||||
|
||||
class SwitchColour
|
||||
{
|
||||
public:
|
||||
@ -81,4 +78,7 @@ class SwitchColour
|
||||
std::ostream& os_;
|
||||
sColour colour_;
|
||||
};
|
||||
|
||||
} // namespace dropshell
|
||||
|
||||
#endif // OUTPUT_HPP
|
Reference in New Issue
Block a user