Added class template

This commit is contained in:
Lynix 2012-06-21 16:50:17 +02:00
parent 445d6d236d
commit 8e04e71c14
2 changed files with 46 additions and 0 deletions

View File

@ -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

View File

@ -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;
}