Commit 012d2b98 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Updating head for open source release

parent f7966746
#ifndef __VALUA_DEFS_H__
#define __VALUA_DEFS_H__
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2017
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* --------------------------------------------------------------------------------------------
*/
// Bindungskonventionen
#ifdef VALUA_DLL
// Dynamische Bibliothek
#ifdef VALUA_EXPORTS
#define VALUA_API __declspec(dllexport)
#else
#define VALUA_API __declspec(dllimport)
#endif
#ifndef IW_VALUA_DEFS
#define IW_VALUA_DEFS
#if ( defined WIN32 ) && ( !( defined VALUA_STATIC ) || !( defined VA_STATIC ) )
#ifdef VALUA_EXPORTS
#define VALUA_API __declspec( dllexport )
#else
#define VALUA_API __declspec( dllimport )
#endif
#else
// Statische Bibliothek
#define VALUA_API
#define VALUA_API
#endif
// Disable STL template-instantiiation warning with DLLs for Visual C++
......@@ -27,5 +37,4 @@
#define VALUA_SVN_DATE "$Date: 2012-06-26 15:42:59 +0200 (Di, 26 Jun 2012) $"
#define VALUA_SVN_REVISION "$Revision: 2734 $"
#endif // __VALUA_DEFS_H__
#endif // IW_VALUA_DEFS
#ifndef __VALUA_SHELL_H__
#define __VALUA_SHELL_H__
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2017
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* --------------------------------------------------------------------------------------------
*/
#ifndef IW_VALUA_SHELL
#define IW_VALUA_SHELL
#include <VALuaDefs.h>
......@@ -51,4 +64,4 @@ public:
virtual void HandleInputLine(const std::string& sLine)=0;
};
#endif // __VALUA_SHELL_H__
\ No newline at end of file
#endif // IW_VALUA_SHELL
\ No newline at end of file
This diff is collapsed.
#include <windows.h>
/*
+-----------------------------+
| |
| Einstiegsfunktion der DLL |
| |
+-----------------------------+
*/
* --------------------------------------------------------------------------------------------
*
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2017
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* --------------------------------------------------------------------------------------------
*/
#include <windows.h>
BOOL APIENTRY DllMain(HANDLE hModule, DWORD fdwReason, LPVOID lpReserved)
{
......
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2017
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* --------------------------------------------------------------------------------------------
*/
#include "VALuaShell.h"
#include "VALuaShellImpl.h"
......@@ -8,7 +21,8 @@ IVALuaShell* IVALuaShell::Create()
return new CVALuaShellImpl();
}
std::string IVALuaShell::GetVersionStr() {
std::string IVALuaShell::GetVersionStr()
{
/* Format
#define VALUA_SVN_DATE "$Date: 2012-06-26 16:37:30 +0200 (Di, 26 Jun 2012) $"
#define VALUA_SVN_REVISION "$Revision: 2740 $"
......
This diff is collapsed.
#ifndef __VALUASHELLIMPL_H__
#define __VALUASHELLIMPL_H__
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2017
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* --------------------------------------------------------------------------------------------
*/
#ifndef IW_VALUA_SHELL_IMPL
#define IW_VALUA_SHELL_IMPL
#include "VALuaShell.h"
extern "C" {
extern "C"
{
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
class CVALuaShellImpl : public IVALuaShell {
class CVALuaShellImpl : public IVALuaShell
{
public:
/*
* pCore VA-Kern den die Shell steuert
......@@ -23,18 +38,18 @@ public:
// TODO: Wie bauen?
static IVACore* GetCoreInstance();
void SetCoreInstance(IVACore* pVACore);
void SetOutputStream(std::ostream* posStdOut);
void SetErrorStream(std::ostream* posStdErr);
void SetCoreInstance( IVACore* pVACore );
void SetOutputStream( std::ostream* posStdOut );
void SetErrorStream( std::ostream* posStdErr );
int GetStatus() const;
void SetStatus(int iStatus);
void SetStatus( int iStatus );
// Ein Lua-Skript ausfhren (von Datei)
void ExecuteLuaScript(const std::string& sFilename);
void ExecuteLuaScript( const std::string& sFilename );
// Eine Eingabezeile verarbeiten
void HandleInputLine(const std::string& sLine);
void HandleInputLine( const std::string& sLine );
private:
std::ostream* m_posStdOut;
......@@ -42,7 +57,7 @@ private:
lua_State* L; // Lua VM
// Nimmt einen Fehler vom Stack der Lua-VM und gibt ihn auf dem Error-Stream aus
void report_errors(lua_State* L, int status);
void report_errors( lua_State* L, int status );
};
#endif // __VALUASHELLIMPL_H__
\ No newline at end of file
#endif // IW_VALUA_SHELL_IMPL
\ No newline at end of file
Supports Markdown
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