Commit 22eacf8f authored by ebaum's avatar ebaum
Browse files

[ADD]

- Stubs for kernel classes
- Integration into CMake
parent 8f0ec90d
FILE( GLOB KERNEL_SRC "*.cpp" )
ADD_LIBRARY( kernel SHARED ${KERNEL_SRC} )
TARGET_LINK_LIBRARIES( kernel common )
# Unit tests
IF( CXXTEST_FOUND )
CXXTEST_ADD_TESTS_FROM_LIST( "${KERNEL_SRC}"
"" # no libs for linking required
)
ENDIF( CXXTEST_FOUND )
//---------------------------------------------------------------------------
//
// Project: OpenWalnut
//
// Copyright 2009 SomeCopyrightowner
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include <iostream>
#include <boost/exception.hpp>
#include "WKernel.h"
#include "../common/WException.h"
WKernel::WKernel()
{
// initialize members
// load modules
loadModules();
}
WKernel::~WKernel()
{
// cleanup
}
WKernel::WKernel( const WKernel& other )
{
*this = other;
}
void WKernel::loadModules()
{
throw WException( "Not yet implemented" );
}
//---------------------------------------------------------------------------
//
// Project: OpenWalnut
//
// Copyright 2009 SomeCopyrightowner
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#ifndef WKERNEL_H
#define WKERNEL_H
/**
* \par Description:
* OpenWalnut kernel, managing modules and interaction between GUI, GE and DataHandler
*/
class WKernel
{
public:
/**
* \par Description
* Default constructor.
*/
WKernel();
/**
* \par Description
* Destructor.
*/
virtual ~WKernel();
/**
* \par Description
* Copy constructor
* \param other Reference on object to copy.
*/
WKernel( const WKernel& other );
private:
/**
* \par Description
* Loads all the modules it can find.
* \exception
*/
void loadModules();
};
#endif // WKERNEL_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment