Select Git revision
rotation_helper.hpp

Sebastian Pape authored
rotation_helper.hpp 2.45 KiB
#pragma once
#if PLATFORM_WINDOWS || PLATFORM_LINUX
#include "IDisplayCluster.h"
#endif
#include "Modules/ModuleManager.h"
#include "ILogStream.h"
class IUniversalLogging : public IModuleInterface
{
public:
/**
* Singleton-like access to this module's interface. This should not be necessary as the intended use is through the UniLog macro
*
* @return Returns singleton instance, loading the module on demand if needed.
*/
static inline IUniversalLogging& Get()
{
return FModuleManager::LoadModuleChecked< IUniversalLogging >("UniversalLogging");
}
/**
* Checks to see if this module is loaded and ready. It is only valid to call Get() if IsAvailable() returns true.
*
* @return True if the module is loaded and ready to use.
*/
static inline bool IsAvailable()
{
return FModuleManager::Get().IsModuleLoaded("UniversalLogging");
}
/**
* Creates a new log stream with the name UniversalLogging_<StreamName>.log in <projectdir>/Saved/Logs.
*
* @return the newly created log stream object.
*/
virtual ILogStream* NewLogStream(const FString StreamName) = 0;
/**
* Creates a new log stream with the name <filename> in <projectdir>/<filepath>.
*
* @return the newly created log stream object.
*/
virtual ILogStream* NewLogStream(const FString StreamName, const FString Filepath, const FString Filename,
bool bPer_Session = false, const bool bLogOnMaster = true,
const bool bLogOnSlaves = false) = 0;
/**
* Closes a specific named log stream.
* This is done by default when a session stops, but can also be done manually if needed
*/
virtual void CloseLogStream(const FString StreamName) = 0;
/**
* Getter for log streams.
*
* @return the requested log stream or nullptr if it does not exist.
*/
virtual ILogStream* GetLogStream(const FString StreamName) = 0;
/**
* Getter for the default log streams (convenience). Equivalent to GetLogStream("").
*
* @return the default log stream.
*/
virtual ILogStream* GetDefaultLogStream() = 0;
/**
float angle_horizontal_ = 0;
float angle_vertical_ = 0;
phx::Entity* LoadAndInsertMesh(phx::Scene* scene, std::string file,
std::string name);
};
#endif // OPTICAL_BENCH_ROTATION_HELPER_HPP_