整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
37
video/core/System.cpp
Normal file
37
video/core/System.cpp
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* INCLUDE
|
||||
*******************************************************************************
|
||||
*/
|
||||
#include "System.h"
|
||||
#include <Poco/Exception.h>
|
||||
|
||||
namespace Video
|
||||
{
|
||||
namespace Core
|
||||
{
|
||||
/*
|
||||
*******************************************************************************
|
||||
* CLASS DEFINE
|
||||
*******************************************************************************
|
||||
*/
|
||||
System* System::_pInstance = nullptr;
|
||||
System::System()
|
||||
{
|
||||
}
|
||||
|
||||
System::~System()
|
||||
{
|
||||
delete _pInstance;
|
||||
_pInstance = nullptr;
|
||||
}
|
||||
|
||||
uint64_t System::timestamp()
|
||||
{
|
||||
if (!_pInstance)
|
||||
throw Poco::IllegalStateException("Unregister implement class.");
|
||||
|
||||
return _pInstance->getTimestamp();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue