Initial commit
This commit is contained in:
commit
edfc5298e1
252 changed files with 93965 additions and 0 deletions
18
include/Spectre/Core/NonCopyable.h
Normal file
18
include/Spectre/Core/NonCopyable.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
#ifndef SPECTRE_CORE_NONCOPYABLE_H
|
||||
#define SPECTRE_CORE_NONCOPYABLE_H
|
||||
|
||||
class NonCopyable
|
||||
{
|
||||
protected :
|
||||
|
||||
NonCopyable() {}
|
||||
|
||||
private :
|
||||
|
||||
// Skip implementation to trigger compiler error.
|
||||
NonCopyable(const NonCopyable&);
|
||||
NonCopyable& operator =(const NonCopyable&);
|
||||
};
|
||||
|
||||
#endif /* SPECTRE_CORE_NONCOPYABLE_H */
|
||||
20
include/Spectre/Core/String.h
Normal file
20
include/Spectre/Core/String.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
#ifndef SPECTRE_CORE_STRING_H
|
||||
#define SPECTRE_CORE_STRING_H
|
||||
|
||||
// Basic string functions.
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace core
|
||||
{
|
||||
// Convertion functions from standard c/c++ types.
|
||||
|
||||
std::string to_string(unsigned int value);
|
||||
|
||||
std::string to_string(float value);
|
||||
|
||||
std::string to_string(float value, unsigned int precision);
|
||||
};
|
||||
|
||||
#endif /* SPECTRE_CORE_STRING_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue