Commit 9bb3a47c authored by MONSEIGNE Thibaut's avatar MONSEIGNE Thibaut

Fix: Coding Rules Modernize Pragma


Fix: Coding Rules Modernize Pragma
parent 48d8a18e
#ifndef __OpenViBEApplication_CCommandShipControl_H__
#define __OpenViBEApplication_CCommandShipControl_H__
#pragma once
#include "../ovassvepICommandVRPNButton.h"
......@@ -16,6 +15,3 @@ namespace OpenViBESSVEP
void execute(int iButton, int iState) override;
};
}
#endif // __OpenViBEApplication_CCommandShipControl_H__
#ifndef __OpenViBEApplication_CCommandTargetControl_
#define __OpenViBEApplication_CCommandTargetControl_
#pragma once
#include "../ovassvepICommandVRPNButton.h"
#include "../ovassvepCVRPNServer.h"
......@@ -21,6 +20,3 @@ namespace OpenViBESSVEP
CVRPNServer* m_poVRPNServer;
};
}
#endif // __OpenViBEApplication_CCommandTargetControl_
#ifndef __OpenViBEApplication_CShooterApplication_H__
#define __OpenViBEApplication_CShooterApplication_H__
#pragma once
#include <iostream>
......@@ -43,5 +42,3 @@ namespace OpenViBESSVEP
std::vector<CShooterTarget*> m_oTargets;
};
}
#endif // __OpenViBEApplication_CShooterApplication_H__
#ifndef __OpenViBEApplication_CShooterTarget_H__
#define __OpenViBEApplication_CShooterTarget_H__
#pragma once
#include <Ogre.h>
#include <iostream>
......@@ -28,6 +27,3 @@ namespace OpenViBESSVEP
CShooterTarget(Ogre::Radian rAngle);
};
}
#endif // __OpenViBEApplication_CShooterTarget_H__
#ifndef __OpenViBEApplication_CStarShip_H__
#define __OpenViBEApplication_CStarShip_H__
#pragma once
#include <Ogre.h>
......@@ -43,5 +42,3 @@ namespace OpenViBESSVEP
Ogre::Real m_rShotDistance;
};
}
#endif // __OpenViBEApplication_CStarShip_H__
#ifndef __OpenViBEApplication_CCommandReceiveTarget_H__
#define __OpenViBEApplication_CCommandReceiveTarget_H__
#pragma once
#include "../ovassvepICommandVRPNButton.h"
......@@ -16,6 +15,3 @@ namespace OpenViBESSVEP
void execute(int iButton, int iState) override;
};
}
#endif // __OpenViBEApplication_CCommandReceiveTarget_H__
#ifndef __OpenViBEApplication_CTrainerApplication_H__
#define __OpenViBEApplication_CTrainerApplication_H__
#pragma once
#include <iostream>
#include <CEGUI.h>
......@@ -37,4 +36,4 @@ namespace OpenViBESSVEP
}
#endif // __OpenViBEApplication_CTrainerApplication_H__
#ifndef __OpenViBEApplication_CTrainerFlickeringObject_H__
#define __OpenViBEApplication_CTrainerFlickeringObject_H__
#pragma once
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
......@@ -46,4 +45,4 @@ namespace OpenViBESSVEP
}
#endif // __OpenViBEApplication_CTrainerFlickeringObject_H__
#ifndef __OpenViBEApplication_CApplication_H__
#define __OpenViBEApplication_CApplication_H__
#pragma once
#include "ovassvep_defines.h"
......@@ -85,5 +84,3 @@ namespace OpenViBESSVEP
Ogre::uint32 m_ui32WindowHeight;
};
}
#endif // __OpenViBEApplication_CApplication_H__
#ifndef __OpenViBEApplication_CBasicPainter_H__
#define __OpenViBEApplication_CBasicPainter_H__
#pragma once
#include <Ogre.h>
......@@ -43,6 +42,3 @@ namespace OpenViBESSVEP
Ogre::AxisAlignedBox m_oAABInf;
};
}
#endif // __OpenViBEApplication_CPainter_H__
#ifndef __OpenViBEApplication_CCommandStartStop_H__
#define __OpenViBEApplication_CCommandStartStop_H__
#pragma once
#include "ovassvepICommandOIS.h"
......@@ -23,6 +21,3 @@ namespace OpenViBESSVEP
CVRPNServer* m_poVRPNServer;
};
}
#endif // __OpenViBEApplication_CCommandStartStop_H__
#ifndef __OpenViBEApplication_CCommandStimulatorControl_H__
#define __OpenViBEApplication_CCommandStimulatorControl_H__
#pragma once
#include "ovassvepICommandVRPNButton.h"
......@@ -14,6 +13,3 @@ namespace OpenViBESSVEP
void execute(int iButton, int iState) override;
};
}
#endif // __OpenViBEApplication_CCommandStimulatorControl_H__
#ifndef __OpenViBEApplication_CSSVEPFlickeringObject_H__
#define __OpenViBEApplication_CSSVEPFlickeringObject_H__
#pragma once
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
......@@ -27,6 +26,3 @@ namespace OpenViBESSVEP
bool m_bVisible;
};
}
#endif // __OpenViBEApplication_CSSVEPFlickeringObject_H__
#ifndef __OpenViBEApplication_CVRPNServer_H__
#define __OpenViBEApplication_CVRPNServer_H__
#pragma once
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
......@@ -38,5 +37,3 @@ namespace OpenViBESSVEP
std::map<std::string, std::vector<int>> m_oButtonCache;
};
}
#endif // __OpenViBEApplication_CVRPNServer_H__
#ifndef __OpenViBEApplication_ICommand_H__
#define __OpenViBEApplication_ICommand_H__
#pragma once
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
......@@ -22,6 +21,3 @@ namespace OpenViBESSVEP
CApplication* m_poApplication;
};
}
#endif // __OpenViBEApplication_ICommand_H__
#ifndef __OpenViBEApplication_ICommandOIS_H__
#define __OpenViBEApplication_ICommandOIS_H__
#pragma once
#include <vector>
......@@ -34,5 +33,3 @@ namespace OpenViBESSVEP
bool keyReleased(const OIS::KeyEvent& oEvent) override;
};
}
#endif // __OpenViBEApplication_ICommandOIS_H__
#ifndef __OpenViBEApplication_ICommandVRPNButton_H__
#define __OpenViBEApplication_ICommandVRPNButton_H__
#pragma once
#include "ovassvepICommand.h"
......@@ -21,6 +20,3 @@ namespace OpenViBESSVEP
vrpn_Button_Remote* m_poVRPNButton;
};
}
#endif // __OpenViBEApplication_ICommandVRPNButton_H__
#ifndef __OpenViBEApplication_Defines_H__
#define __OpenViBEApplication_Defines_H__
#endif // __OpenViBEApplication_Defines_H__
#pragma once
\ No newline at end of file
#ifndef __OpenViBEApplication_CGenericStimulatorApplication_H__
#define __OpenViBEApplication_CGenericStimulatorApplication_H__
#pragma once
#include <iostream>
#include <CEGUI.h>
......@@ -37,4 +36,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CGenericStimulatorApplication_H__
#ifndef __OpenViBEApplication_CGenericStimulatorFlickeringObject_H__
#define __OpenViBEApplication_CGenericStimulatorFlickeringObject_H__
#pragma once
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
......@@ -43,4 +42,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CGenericStimulatorFlickeringObject_H__
......@@ -3,9 +3,7 @@
* @note This code likely originates from the Ogre project
*
*/
#ifndef DOT_SCENELOADER_H
#define DOT_SCENELOADER_H
#pragma once
// Includes
#include <OgreString.h>
......@@ -131,5 +129,3 @@ protected:
// resource locations basedir
Ogre::String m_sResLocationsBaseDir;
};
#endif // DOT_SCENELOADER_H
#ifndef RAPIDXML_HPP_INCLUDED
#define RAPIDXML_HPP_INCLUDED
#pragma once
// Copyright (C) 2006, 2009 Marcin Kalicinski
// Version 1.13
......@@ -2592,5 +2591,3 @@ namespace rapidxml
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#endif
/// Controls the ship movement by the continuous values from the classifier probabilities
// If bTakeControl is false, feedback levels will still be provided by the analog control.
#ifndef __OpenViBEApplication_CCommandControlAnalog_H__
#define __OpenViBEApplication_CCommandControlAnalog_H__
#pragma once
#include <vector>
#include "../ovamsICommandVRPNAnalog.h"
......@@ -34,4 +33,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CCommandControlAnalog_H__
/// Control ship movements with VRPN using label predictions from the classifier
// If bTakeControl is false, the class will do nothing.
#ifndef __OpenViBEApplication_CCommandControlDiscrete_H__
#define __OpenViBEApplication_CCommandControlDiscrete_H__
#pragma once
#include "../ovamsICommandVRPNButton.h"
......@@ -23,4 +22,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CCommandControlDiscrete_H__
/// Control ship movements with the keyboard
#ifndef __OpenViBEApplication_CCommandControlDiscreteOIS_H__
#define __OpenViBEApplication_CCommandControlDiscreteOIS_H__
#pragma once
#include <map>
......@@ -27,4 +26,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CCommandControlDiscreteOIS_H__
/// Used to insert enemy ships into the scene upon receiving a trigger
#ifndef __OpenViBEApplication_CCommandCustomImpactTargetControl_
#define __OpenViBEApplication_CCommandCustomImpactTargetControl_
#pragma once
/// Used to insert enemy ships into the scene upon receiving a trigger
#include "../ovamsICommandVRPNButton.h"
#include "../ovamsCVRPNServer.h"
......@@ -23,6 +21,3 @@ namespace OpenViBESSVEPMindShooter
CVRPNServer* m_poVRPNServer;
};
}
#endif // __OpenViBEApplication_CCommandImpactTargetControl_
#ifndef __OpenViBEApplication_CCommandImpactTargetControl_
#define __OpenViBEApplication_CCommandImpactTargetControl_
#pragma once
#include "../ovamsICommandVRPNButton.h"
#include "../ovamsCVRPNServer.h"
......@@ -21,6 +20,3 @@ namespace OpenViBESSVEPMindShooter
CVRPNServer* m_poVRPNServer;
};
}
#endif // __OpenViBEApplication_CCommandImpactTargetControl_
#ifndef __OpenViBEApplication_CImpactApplication_H__
#define __OpenViBEApplication_CImpactApplication_H__
#pragma once
#include <iostream>
......@@ -100,4 +99,4 @@ namespace OpenViBESSVEPMindShooter
};
}
#endif // __OpenViBEApplication_CImpactApplication_H__
#ifndef __OpenViBEApplication_CImpactEnemyShip_H__
#define __OpenViBEApplication_CImpactEnemyShip_H__
#pragma once
#include <Ogre.h>
#include <iostream>
......@@ -68,4 +67,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CImpactEnemyShip_H__
#ifndef __OpenViBEApplication_CImpactShip_H__
#define __OpenViBEApplication_CImpactShip_H__
#pragma once
#include <vector>
......@@ -93,4 +92,4 @@ namespace OpenViBESSVEPMindShooter
};
}
#endif // __OpenViBEApplication_CImpactShip_H__
#ifndef __OpenViBEKernel_Kernel_Log_CLogListenerFile_H__
#define __OpenViBEKernel_Kernel_Log_CLogListenerFile_H__
#pragma once
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
......@@ -62,4 +61,4 @@ namespace OpenViBE
};
};
#endif // __OpenViBEKernel_Kernel_Log_CLogListenerFile_H__
#ifndef __OpenViBEApplication_CApplication_H__
#define __OpenViBEApplication_CApplication_H__
#pragma once
#include "ovams_defines.h"
......@@ -113,4 +112,4 @@ namespace OpenViBESSVEPMindShooter
};
}
#endif // __OpenViBEApplication_CApplication_H__
#ifndef __OpenViBEApplication_CBasicPainter_H__
#define __OpenViBEApplication_CBasicPainter_H__
#pragma once
/// this class is a wrapper around some ogre methods to display basic shapes
......@@ -49,4 +48,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CPainter_H__
#ifndef __OpenViBEApplication_CCommandCamera_H__
#define __OpenViBEApplication_CCommandCamera_H__
#pragma once
#include <map>
......@@ -30,4 +29,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CCommandCamera_H__
#ifndef __OpenViBEApplication_CCommandReceiveTarget_H__
#define __OpenViBEApplication_CCommandReceiveTarget_H__
#pragma once
#include "ovamsICommandVRPNButton.h"
......@@ -18,4 +17,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CCommandReceiveTarget_H__
#ifndef __OpenViBEApplication_CCommandStartStop_H__
#define __OpenViBEApplication_CCommandStartStop_H__
#pragma once
#include "ovamsICommandOIS.h"
......@@ -25,4 +24,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CCommandStartStop_H__
#ifndef __OpenViBEApplication_CCommandStimulatorControl_H__
#define __OpenViBEApplication_CCommandStimulatorControl_H__
#pragma once
#include "ovamsICommandVRPNButton.h"
......@@ -16,4 +15,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CCommandStimulatorControl_H__
#ifndef __OpenViBEApplication_CSSVEPFlickeringObject_H__
#define __OpenViBEApplication_CSSVEPFlickeringObject_H__
#pragma once
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
......@@ -32,4 +31,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_CSSVEPFlickeringObject_H__
#ifndef __OpenViBEApplication_CVRPNServer_H__
#define __OpenViBEApplication_CVRPNServer_H__
#pragma once
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
......@@ -39,4 +38,4 @@ namespace OpenViBESSVEPMindShooter
};
}
#endif // __OpenViBEApplication_CVRPNServer_H__
#ifndef __OpenViBEApplication_ICommand_H__
#define __OpenViBEApplication_ICommand_H__
#pragma once
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
......@@ -24,4 +23,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_ICommand_H__
#ifndef __OpenViBEApplication_ICommandOIS_H__
#define __OpenViBEApplication_ICommandOIS_H__
#pragma once
#include <vector>
......@@ -41,4 +40,4 @@ namespace OpenViBESSVEPMindShooter
};
}
#endif // __OpenViBEApplication_ICommandOIS_H__
#ifndef __OpenViBEApplication_ICommandVRPNAnalog_H__
#define __OpenViBEApplication_ICommandVRPNAnalog_H__
#pragma once
#include "ovamsICommand.h"
......@@ -23,4 +22,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_ICommandVRPNAnalog_H__
#ifndef __OpenViBEApplication_ICommandVRPNButton_H__
#define __OpenViBEApplication_ICommandVRPNButton_H__
#pragma once
#include "ovamsICommand.h"
......@@ -23,4 +22,4 @@ namespace OpenViBESSVEPMindShooter
}
#endif // __OpenViBEApplication_ICommandVRPNButton_H__
#ifndef __OpenViBESSVEPMindShooter_Defines_H__
#define __OpenViBESSVEPMindShooter_Defines_H__
#pragma once
#endif // __OpenViBEMindShooter_Defines_H__
#ifndef __OpenViBEApplication_CHandballBCI_H__
#define __OpenViBEApplication_CHandballBCI_H__
#pragma once
#include "../ovavrdCOgreVRApplication.h"
......@@ -86,4 +85,4 @@ namespace OpenViBEVRDemos
} EMark;
};
};
#endif //__OpenViBEApplication_CHandballBCI_H__