整理代码

This commit is contained in:
蒲爽 2026-09-28 21:33:04 +08:00
commit c7b4e178ec
364 changed files with 59691 additions and 0 deletions

45
video/core/System.h Normal file
View file

@ -0,0 +1,45 @@
#ifndef BC5898D8_C525_4FD9_9609_B2112CB1BE92
#define BC5898D8_C525_4FD9_9609_B2112CB1BE92
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include <Poco/Poco.h>
namespace Video
{
namespace Core
{
/*
*******************************************************************************
* CLASS DECLARE
*******************************************************************************
*/
class System
{
protected:
System();
public:
virtual ~System();
public:
static uint64_t timestamp();
template <class T> static void registerClass();
protected:
virtual uint64_t getTimestamp() = 0;
private:
static System* _pInstance;
};
template <class T> inline void System::registerClass()
{
_pInstance = new T();
}
}
}
#endif