[DEV] clean header file

This commit is contained in:
Edouard DUPIN 2016-05-02 22:01:55 +02:00
parent c638b01ff0
commit a4a021277a
29 changed files with 69 additions and 154 deletions

View File

@ -7,10 +7,6 @@
#include <functional> #include <functional>
#include "debug.h" #include "debug.h"
#undef __class__
#define __class__ "Algo"
audio::drain::Algo::Algo() : audio::drain::Algo::Algo() :
m_temporary(false), m_temporary(false),
m_outputData(), m_outputData(),
@ -114,4 +110,4 @@ void audio::drain::Algo::generateStatus(const std::string& _status) {
m_statusFunction(m_name, _status); m_statusFunction(m_name, _status);
} }
} }
} }

View File

@ -10,9 +10,6 @@
#include "debug.h" #include "debug.h"
#undef __class__
#define __class__ "ChannelReorder"
audio::drain::ChannelReorder::ChannelReorder() { audio::drain::ChannelReorder::ChannelReorder() {
} }

View File

@ -7,8 +7,6 @@
#include <audio/drain/EndPointCallback.h> #include <audio/drain/EndPointCallback.h>
#include <audio/drain/debug.h> #include <audio/drain/debug.h>
#undef __class__
#define __class__ "EndPointCallback"
audio::drain::EndPointCallback::EndPointCallback() : audio::drain::EndPointCallback::EndPointCallback() :
m_outputFunction(nullptr), m_outputFunction(nullptr),

View File

@ -7,8 +7,6 @@
#include <audio/drain/EndPointRead.h> #include <audio/drain/EndPointRead.h>
#include <audio/drain/debug.h> #include <audio/drain/debug.h>
#undef __class__
#define __class__ "EndPointRead"
audio::drain::EndPointRead::EndPointRead() { audio::drain::EndPointRead::EndPointRead() {

View File

@ -7,9 +7,6 @@
#include <audio/drain/debug.h> #include <audio/drain/debug.h>
#undef __class__
#define __class__ "EndPointWrite"
audio::drain::EndPointWrite::EndPointWrite() : audio::drain::EndPointWrite::EndPointWrite() :
m_function(nullptr), m_function(nullptr),
m_bufferSizeMicroseconds(1000000) { m_bufferSizeMicroseconds(1000000) {

View File

@ -8,9 +8,6 @@
#include <iostream> #include <iostream>
#include <audio/drain/debug.h> #include <audio/drain/debug.h>
#undef __class__
#define __class__ "FormatUpdate"
#ifndef INT16_MAX #ifndef INT16_MAX
#define INT16_MAX 0x7fff #define INT16_MAX 0x7fff
#endif #endif

View File

@ -7,10 +7,6 @@
#include "IOFormatInterface.h" #include "IOFormatInterface.h"
#include "debug.h" #include "debug.h"
#undef __class__
#define __class__ "IOFormatInterface"
std::ostream& audio::drain::operator <<(std::ostream& _os, const IOFormatInterface& _obj) { std::ostream& audio::drain::operator <<(std::ostream& _os, const IOFormatInterface& _obj) {
_os << "{"; _os << "{";
if (_obj.getConfigured() == false) { if (_obj.getConfigured() == false) {

View File

@ -15,9 +15,6 @@
#include <audio/drain/Resampler.h> #include <audio/drain/Resampler.h>
#include <audio/drain/debug.h> #include <audio/drain/debug.h>
#undef __class__
#define __class__ "Process"
audio::drain::Process::Process() : audio::drain::Process::Process() :
m_isConfigured(false) { m_isConfigured(false) {
m_data.clear(); m_data.clear();

View File

@ -8,9 +8,6 @@
#include <iostream> #include <iostream>
#include <audio/drain/debug.h> #include <audio/drain/debug.h>
#undef __class__
#define __class__ "Resampler"
audio::drain::Resampler::Resampler() : audio::drain::Resampler::Resampler() :
#ifdef HAVE_SPEEX_DSP_RESAMPLE #ifdef HAVE_SPEEX_DSP_RESAMPLE
m_speexResampler(nullptr), m_speexResampler(nullptr),

View File

@ -9,9 +9,6 @@
#include <math.h> #include <math.h>
#include <audio/drain/debug.h> #include <audio/drain/debug.h>
#undef __class__
#define __class__ "Volume"
audio::drain::Volume::Volume() : audio::drain::Volume::Volume() :
m_volumeAppli(1.0f), m_volumeAppli(1.0f),
m_functionConvert(nullptr) { m_functionConvert(nullptr) {

View File

@ -7,6 +7,3 @@
#include "debug.h" #include "debug.h"
#undef __class__
#define __class__ ""

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
*
* @copyright 2011, Edouard DUPIN, all right reserved * @copyright 2011, Edouard DUPIN, all right reserved
* * @license APACHE v2.0 (see license file)
* @license BSD 3 clauses (see license file)
*/ */
#ifdef __AUDIO_DRAIN_DEBUG_H__ #ifdef __AUDIO_DRAIN_DEBUG_H__

View File

@ -8,10 +8,6 @@
#include <test-debug/debug.h> #include <test-debug/debug.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#undef __class__
#define __class__ "test"
int main(int _argc, const char** _argv) { int main(int _argc, const char** _argv) {
// init Google test : // init Google test :
::testing::InitGoogleTest(&_argc, const_cast<char **>(_argv)); ::testing::InitGoogleTest(&_argc, const_cast<char **>(_argv));

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#include <etk/types.h> #include <etk/types.h>
@ -16,10 +14,7 @@
#include <ewol/widget/Slider.h> #include <ewol/widget/Slider.h>
#include <audio/drain/Equalizer.h> #include <audio/drain/Equalizer.h>
#undef __class__ define APPL_SAVE_FILE_MACRO(type,fileName,dataPointer,nbElement) \
#define __class__ "Windows"
#define APPL_SAVE_FILE_MACRO(type,fileName,dataPointer,nbElement) \
do { \ do { \
static FILE *pointerOnFile = nullptr; \ static FILE *pointerOnFile = nullptr; \
static bool errorOpen = false; \ static bool errorOpen = false; \

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#pragma once #pragma once

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#pragma once #pragma once

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license GPL v3 (see license file)
*/ */

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#pragma once #pragma once

View File

@ -1,19 +1,13 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#include <appl/widget/DisplayFrequency.h> #include <appl/widget/DisplayFrequency.h>
#include <appl/debug.h> #include <appl/debug.h>
#include <etk/tool.h> #include <etk/tool.h>
#undef __class__
#define __class__ "DisplayFrequency"
appl::widget::DisplayFrequency::DisplayFrequency() : appl::widget::DisplayFrequency::DisplayFrequency() :
m_gainMin(0.0f), m_gainMin(0.0f),
m_gainMax(1.0f), m_gainMax(1.0f),

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#pragma once #pragma once

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#include <ewol/ewol.h> #include <ewol/ewol.h>
@ -14,9 +12,6 @@
#include <ewol/widget/Button.h> #include <ewol/widget/Button.h>
#include <ewol/widget/Slider.h> #include <ewol/widget/Slider.h>
#undef __class__
#define __class__ "Windows"
#define APPL_SAVE_FILE_MACRO(type,fileName,dataPointer,nbElement) \ #define APPL_SAVE_FILE_MACRO(type,fileName,dataPointer,nbElement) \
do { \ do { \
static FILE *pointerOnFile = nullptr; \ static FILE *pointerOnFile = nullptr; \

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#pragma once #pragma once

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#pragma once #pragma once

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license GPL v3 (see license file)
*/ */

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#pragma once #pragma once

View File

@ -1,19 +1,13 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#include <appl/widget/DisplayFrequency.h> #include <appl/widget/DisplayFrequency.h>
#include <appl/debug.h> #include <appl/debug.h>
#include <etk/tool.h> #include <etk/tool.h>
#undef __class__
#define __class__ "DisplayFrequency"
appl::widget::DisplayFrequency::DisplayFrequency() : appl::widget::DisplayFrequency::DisplayFrequency() :
m_gainMin(0.0f), m_gainMin(0.0f),
m_gainMax(1.0f), m_gainMax(1.0f),

View File

@ -1,9 +1,7 @@
/** /** @file
* @author Edouard DUPIN * @author Edouard DUPIN
* * @copyright 2011, Edouard DUPIN, all right reserved
* @copyright 2010, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file)
*
* @license APACHE-2 (see license file)
*/ */
#pragma once #pragma once