Added class template
This commit is contained in:
parent
445d6d236d
commit
8e04e71c14
|
|
@ -0,0 +1,25 @@
|
||||||
|
// Copyright (C) 2012 AUTHORS
|
||||||
|
// This file is part of the "Nazara Engine".
|
||||||
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef NAZARA_CLASSNAME_HPP
|
||||||
|
#define NAZARA_CLASSNAME_HPP
|
||||||
|
|
||||||
|
#include <Nazara/Prerequesites.hpp>
|
||||||
|
|
||||||
|
class NAZARA_API NzClassName
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
NzClassName();
|
||||||
|
|
||||||
|
int GetAttribute() const;
|
||||||
|
|
||||||
|
void SetAttribute(int attribute);
|
||||||
|
|
||||||
|
private:
|
||||||
|
int m_attribute;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // NAZARA_CLASSNAME_HPP
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
// Copyright (C) 2012 AUTHORS
|
||||||
|
// This file is part of the "Nazara Engine".
|
||||||
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
|
#include <Nazara/ModuleName/ClassName.hpp>
|
||||||
|
#include <Nazara/ModuleName/Debug.hpp>
|
||||||
|
|
||||||
|
NzClassName::NzClassName() :
|
||||||
|
m_attribute(42)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
int NzClassName::GetAttribute() const
|
||||||
|
{
|
||||||
|
return m_attribute;
|
||||||
|
}
|
||||||
|
|
||||||
|
void NzClassName::SetAttribute(int attribute)
|
||||||
|
{
|
||||||
|
m_attribute = attribute;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue