[DEV/API] change .h in .hpp

This commit is contained in:
Edouard DUPIN 2016-10-02 22:19:26 +02:00
parent bc47714cff
commit 7d38eb190d
47 changed files with 165 additions and 165 deletions

View File

@ -4,13 +4,13 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include "debug.h" #include "debug.hpp"
#include "Interface.h" #include "Interface.hpp"
#include "io/Node.h" #include "io/Node.hpp"
#include <audio/drain/EndPointCallback.h> #include <audio/drain/EndPointCallback.hpp>
#include <audio/drain/EndPointWrite.h> #include <audio/drain/EndPointWrite.hpp>
#include <audio/drain/EndPointRead.h> #include <audio/drain/EndPointRead.hpp>
#include <audio/drain/Volume.h> #include <audio/drain/Volume.hpp>
audio::river::Interface::Interface(void) : audio::river::Interface::Interface(void) :
m_node(), m_node(),

View File

@ -11,15 +11,15 @@
#include <mutex> #include <mutex>
#include <chrono> #include <chrono>
#include <functional> #include <functional>
#include <ememory/memory.h> #include <ememory/memory.hpp>
#include <audio/format.h> #include <audio/format.hpp>
#include <audio/channel.h> #include <audio/channel.hpp>
#include <audio/drain/Process.h> #include <audio/drain/Process.hpp>
#include <audio/drain/EndPointCallback.h> #include <audio/drain/EndPointCallback.hpp>
#include <audio/drain/EndPointWrite.h> #include <audio/drain/EndPointWrite.hpp>
#include <ejson/ejson.h> #include <ejson/ejson.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <audio/Time.h> #include <audio/Time.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -4,14 +4,14 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include "Manager.h" #include "Manager.hpp"
#include "Interface.h" #include "Interface.hpp"
#include <stdexcept> #include <stdexcept>
#include "io/Manager.h" #include "io/Manager.hpp"
#include "io/Node.h" #include "io/Node.hpp"
#include "debug.h" #include "debug.hpp"
#include <ejson/ejson.h> #include <ejson/ejson.hpp>
static std::mutex g_mutex; static std::mutex g_mutex;
static std::vector<ememory::WeakPtr<audio::river::Manager> > g_listOfAllManager; static std::vector<ememory::WeakPtr<audio::river::Manager> > g_listOfAllManager;

View File

@ -7,11 +7,11 @@
#include <string> #include <string>
#include <stdint.h> #include <stdint.h>
#include <ememory/memory.h> #include <ememory/memory.hpp>
#include <audio/river/Interface.h> #include <audio/river/Interface.hpp>
#include <audio/format.h> #include <audio/format.hpp>
#include <audio/channel.h> #include <audio/channel.hpp>
#include <ejson/ejson.h> #include <ejson/ejson.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/river/debug.h> #include <audio/river/debug.hpp>
int32_t audio::river::getLogId() { int32_t audio::river::getLogId() {

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <elog/log.h> #include <elog/log.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -4,13 +4,13 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/river/io/Group.h> #include <audio/river/io/Group.hpp>
#include <audio/river/debug.h> #include <audio/river/debug.hpp>
#include "Node.h" #include "Node.hpp"
#include "NodeAEC.h" #include "NodeAEC.hpp"
#include "NodeOrchestra.h" #include "NodeOrchestra.hpp"
#include "NodePortAudio.h" #include "NodePortAudio.hpp"
#include "Node.h" #include "Node.hpp"
void audio::river::io::Group::createFrom(const ejson::Document& _obj, const std::string& _name) { void audio::river::io::Group::createFrom(const ejson::Document& _obj, const std::string& _name) {
RIVER_INFO("Create Group[" << _name << "] (START) ___________________________"); RIVER_INFO("Create Group[" << _name << "] (START) ___________________________");

View File

@ -8,8 +8,8 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <ejson/ejson.h> #include <ejson/ejson.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -4,17 +4,17 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/river/io/Manager.h> #include <audio/river/io/Manager.hpp>
#include <audio/river/debug.h> #include <audio/river/debug.hpp>
#include <audio/river/river.h> #include <audio/river/river.hpp>
#include <audio/river/io/Node.h> #include <audio/river/io/Node.hpp>
#include <audio/river/io/NodeAEC.h> #include <audio/river/io/NodeAEC.hpp>
#include <audio/river/io/NodeMuxer.h> #include <audio/river/io/NodeMuxer.hpp>
#include <audio/river/io/NodeOrchestra.h> #include <audio/river/io/NodeOrchestra.hpp>
#include <audio/river/io/NodePortAudio.h> #include <audio/river/io/NodePortAudio.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <ememory/memory.h> #include <ememory/memory.hpp>
#include <etk/types.h> #include <etk/types.hpp>
#include <utility> #include <utility>
#ifdef AUDIO_RIVER_BUILD_PORTAUDIO #ifdef AUDIO_RIVER_BUILD_PORTAUDIO

View File

@ -13,12 +13,12 @@
#include <mutex> #include <mutex>
#include <chrono> #include <chrono>
#include <functional> #include <functional>
#include <ememory/memory.h> #include <ememory/memory.hpp>
#include <audio/format.h> #include <audio/format.hpp>
#include <audio/channel.h> #include <audio/channel.hpp>
#include <ejson/ejson.h> #include <ejson/ejson.hpp>
#include <audio/drain/Volume.h> #include <audio/drain/Volume.hpp>
#include <audio/river/io/Group.h> #include <audio/river/io/Group.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include "Node.h" #include "Node.hpp"
#include <audio/river/debug.h> #include <audio/river/debug.hpp>
audio::river::io::Node::Node(const std::string& _name, const ejson::Object& _config) : audio::river::io::Node::Node(const std::string& _name, const ejson::Object& _config) :
m_config(_config), m_config(_config),

View File

@ -11,14 +11,14 @@
#include <stdint.h> #include <stdint.h>
#include <chrono> #include <chrono>
#include <functional> #include <functional>
#include <ememory/memory.h> #include <ememory/memory.hpp>
#include <audio/format.h> #include <audio/format.hpp>
#include <audio/channel.h> #include <audio/channel.hpp>
#include "Manager.h" #include "Manager.hpp"
#include <audio/river/Interface.h> #include <audio/river/Interface.hpp>
#include <audio/drain/IOFormatInterface.h> #include <audio/drain/IOFormatInterface.hpp>
#include <audio/drain/Volume.h> #include <audio/drain/Volume.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -4,10 +4,10 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/river/io/NodeAEC.h> #include <audio/river/io/NodeAEC.hpp>
#include <audio/river/debug.h> #include <audio/river/debug.hpp>
#include <etk/types.h> #include <etk/types.hpp>
#include <ememory/memory.h> #include <ememory/memory.hpp>
#include <functional> #include <functional>
ememory::SharedPtr<audio::river::io::NodeAEC> audio::river::io::NodeAEC::create(const std::string& _name, const ejson::Object& _config) { ememory::SharedPtr<audio::river::io::NodeAEC> audio::river::io::NodeAEC::create(const std::string& _name, const ejson::Object& _config) {

View File

@ -5,9 +5,9 @@
*/ */
#pragma once #pragma once
#include <audio/river/io/Node.h> #include <audio/river/io/Node.hpp>
#include <audio/river/Interface.h> #include <audio/river/Interface.hpp>
#include <audio/drain/CircularBuffer.h> #include <audio/drain/CircularBuffer.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -6,9 +6,9 @@
#ifdef AUDIO_RIVER_BUILD_FILE #ifdef AUDIO_RIVER_BUILD_FILE
#include <audio/river/io/NodeFile.h> #include <audio/river/io/NodeFile.hpp>
#include <audio/river/debug.h> #include <audio/river/debug.hpp>
#include <ememory/memory.h> #include <ememory/memory.hpp>
int32_t audio::river::io::NodeFile::recordCallback(const void* _inputBuffer, int32_t audio::river::io::NodeFile::recordCallback(const void* _inputBuffer,
const audio::Time& _timeInput, const audio::Time& _timeInput,

View File

@ -7,8 +7,8 @@
#ifdef AUDIO_RIVER_BUILD_FILE #ifdef AUDIO_RIVER_BUILD_FILE
#include <audio/river/io/Node.h> #include <audio/river/io/Node.hpp>
#include <audio/orchestra/Interface.h> #include <audio/orchestra/Interface.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -4,10 +4,10 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/river/io/NodeMuxer.h> #include <audio/river/io/NodeMuxer.hpp>
#include <audio/river/debug.h> #include <audio/river/debug.hpp>
#include <etk/types.h> #include <etk/types.hpp>
#include <ememory/memory.h> #include <ememory/memory.hpp>
#include <functional> #include <functional>
ememory::SharedPtr<audio::river::io::NodeMuxer> audio::river::io::NodeMuxer::create(const std::string& _name, const ejson::Object& _config) { ememory::SharedPtr<audio::river::io::NodeMuxer> audio::river::io::NodeMuxer::create(const std::string& _name, const ejson::Object& _config) {

View File

@ -5,9 +5,9 @@
*/ */
#pragma once #pragma once
#include <audio/river/io/Node.h> #include <audio/river/io/Node.hpp>
#include <audio/river/Interface.h> #include <audio/river/Interface.hpp>
#include <audio/drain/CircularBuffer.h> #include <audio/drain/CircularBuffer.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -6,9 +6,9 @@
#ifdef AUDIO_RIVER_BUILD_ORCHESTRA #ifdef AUDIO_RIVER_BUILD_ORCHESTRA
#include <audio/river/io/NodeOrchestra.h> #include <audio/river/io/NodeOrchestra.hpp>
#include <audio/river/debug.h> #include <audio/river/debug.hpp>
#include <ememory/memory.h> #include <ememory/memory.hpp>
int32_t audio::river::io::NodeOrchestra::recordCallback(const void* _inputBuffer, int32_t audio::river::io::NodeOrchestra::recordCallback(const void* _inputBuffer,
const audio::Time& _timeInput, const audio::Time& _timeInput,

View File

@ -7,8 +7,8 @@
#ifdef AUDIO_RIVER_BUILD_ORCHESTRA #ifdef AUDIO_RIVER_BUILD_ORCHESTRA
#include <audio/river/io/Node.h> #include <audio/river/io/Node.hpp>
#include <audio/orchestra/Interface.h> #include <audio/orchestra/Interface.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -6,11 +6,11 @@
#ifdef AUDIO_RIVER_BUILD_PORTAUDIO #ifdef AUDIO_RIVER_BUILD_PORTAUDIO
#include <audio/river/io/NodePortAudio.h> #include <audio/river/io/NodePortAudio.hpp>
#include <audio/river/debug.h> #include <audio/river/debug.hpp>
#include <ememory/memory.h> #include <ememory/memory.hpp>
#include <audio/Time.h> #include <audio/Time.hpp>
#include <audio/Duration.h> #include <audio/Duration.hpp>
static int portAudioStreamCallback(const void *_input, static int portAudioStreamCallback(const void *_input,
void *_output, void *_output,

View File

@ -7,9 +7,9 @@
#ifdef AUDIO_RIVER_BUILD_PORTAUDIO #ifdef AUDIO_RIVER_BUILD_PORTAUDIO
#include <audio/river/Interface.h> #include <audio/river/Interface.hpp>
#include <audio/river/io/Node.h> #include <audio/river/io/Node.hpp>
#include <portaudio/portaudio.h> #include <portaudio/portaudio.hpp>
namespace audio { namespace audio {
namespace river { namespace river {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/river/river.h> #include <audio/river/river.hpp>
#include <audio/river/debug.h> #include <audio/river/debug.hpp>
#include <audio/river/io/Manager.h> #include <audio/river/io/Manager.hpp>
static bool river_isInit = false; static bool river_isInit = false;
static std::string river_configFile = ""; static std::string river_configFile = "";

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <etk/types.h> #include <etk/types.hpp>
/** /**
* @brief Audio library namespace * @brief Audio library namespace
*/ */

View File

@ -40,12 +40,12 @@ def create(target, module_name):
'audio/river/io/Manager.cpp' 'audio/river/io/Manager.cpp'
]) ])
my_module.add_header_file([ my_module.add_header_file([
'audio/river/river.h', 'audio/river/river.hpp',
'audio/river/Manager.h', 'audio/river/Manager.hpp',
'audio/river/Interface.h', 'audio/river/Interface.hpp',
'audio/river/io/Group.h', 'audio/river/io/Group.hpp',
'audio/river/io/Node.h', 'audio/river/io/Node.hpp',
'audio/river/io/Manager.h' 'audio/river/io/Manager.hpp'
]) ])
my_module.add_optionnal_depend('audio-orchestra', ["c++", "-DAUDIO_RIVER_BUILD_ORCHESTRA"]) my_module.add_optionnal_depend('audio-orchestra', ["c++", "-DAUDIO_RIVER_BUILD_ORCHESTRA"])
my_module.add_optionnal_depend('portaudio', ["c++", "-DAUDIO_RIVER_BUILD_PORTAUDIO"]) my_module.add_optionnal_depend('portaudio', ["c++", "-DAUDIO_RIVER_BUILD_PORTAUDIO"])

View File

@ -4,13 +4,13 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <ewol/ewol.h> #include <ewol/ewol.hpp>
#include <appl/debug.h> #include <appl/debug.hpp>
#include <appl/Windows.h> #include <appl/Windows.hpp>
#include <ewol/widget/Label.h> #include <ewol/widget/Label.hpp>
#include <ewol/widget/Button.h> #include <ewol/widget/Button.hpp>
#include <audio/river/widget/TemporalViewer.h> #include <audio/river/widget/TemporalViewer.hpp>
#include <etk/tool.h> #include <etk/tool.hpp>
appl::Windows::Windows() : appl::Windows::Windows() :
m_composer(nullptr) { m_composer(nullptr) {

View File

@ -5,8 +5,8 @@
*/ */
#pragma once #pragma once
#include <ewol/widget/Windows.h> #include <ewol/widget/Windows.hpp>
#include <ewol/widget/Composer.h> #include <ewol/widget/Composer.hpp>
namespace appl { namespace appl {
class Windows : public ewol::widget::Windows { class Windows : public ewol::widget::Windows {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <appl/debug.h> #include <appl/debug.hpp>
int32_t appl::getLogId() { int32_t appl::getLogId() {

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <elog/log.h> #include <elog/log.hpp>
namespace appl { namespace appl {
int32_t getLogId(); int32_t getLogId();

View File

@ -5,16 +5,16 @@
*/ */
#include <etk/types.h> #include <etk/types.hpp>
#include <ewol/ewol.h> #include <ewol/ewol.hpp>
#include <gale/context/commandLine.h> #include <gale/context/commandLine.hpp>
#include <appl/debug.h> #include <appl/debug.hpp>
#include <appl/Windows.h> #include <appl/Windows.hpp>
#include <ewol/object/Object.h> #include <ewol/object/Object.hpp>
#include <ewol/widget/Manager.h> #include <ewol/widget/Manager.hpp>
#include <ewol/context/Context.h> #include <ewol/context/Context.hpp>
#include <audio/river/widget/TemporalViewer.h> #include <audio/river/widget/TemporalViewer.hpp>
static const std::string configurationRiver = static const std::string configurationRiver =
"{\n" "{\n"

View File

@ -6,12 +6,12 @@
//! [audio_river_sample_read_all] //! [audio_river_sample_read_all]
//! [audio_river_sample_include] //! [audio_river_sample_include]
#include <audio/river/river.h> #include <audio/river/river.hpp>
#include <audio/river/Manager.h> #include <audio/river/Manager.hpp>
#include <audio/river/Interface.h> #include <audio/river/Interface.hpp>
//! [audio_river_sample_include] //! [audio_river_sample_include]
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <etk/etk.h> #include <etk/etk.hpp>
#include <unistd.h> #include <unistd.h>

View File

@ -6,10 +6,10 @@
//! [audio_river_sample_write_all] //! [audio_river_sample_write_all]
#include <audio/river/river.h> #include <audio/river/river.hpp>
#include <audio/river/Manager.h> #include <audio/river/Manager.hpp>
#include <audio/river/Interface.h> #include <audio/river/Interface.hpp>
#include <etk/etk.h> #include <etk/etk.hpp>
#include <unistd.h> #include <unistd.h>
//! [audio_river_sample_write_config_file] //! [audio_river_sample_write_config_file]

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#define TEST_SAVE_FILE_MACRO(type,fileName,dataPointer,nbElement) \ #define TEST_SAVE_FILE_MACRO(type,fileName,dataPointer,nbElement) \
do { \ do { \
@ -27,25 +27,25 @@
#include <audio/river/river.h> #include <audio/river/river.hpp>
#include <audio/river/Manager.h> #include <audio/river/Manager.hpp>
#include <audio/river/Interface.h> #include <audio/river/Interface.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <etk/etk.h> #include <etk/etk.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <math.h> #include <cmath>
#include <sstream> #include <sstream>
#include <unistd.h> #include <unistd.h>
#include <thread> #include <thread>
#include "testAEC.h" #include "testAEC.hpp"
#include "testEchoDelay.h" #include "testEchoDelay.hpp"
#include "testFormat.h" #include "testFormat.hpp"
#include "testMuxer.h" #include "testMuxer.hpp"
#include "testPlaybackCallback.h" #include "testPlaybackCallback.hpp"
#include "testPlaybackWrite.h" #include "testPlaybackWrite.hpp"
#include "testRecordCallback.h" #include "testRecordCallback.hpp"
#include "testRecordRead.h" #include "testRecordRead.hpp"
#include "testVolume.h" #include "testVolume.hpp"
int main(int _argc, const char** _argv) { int main(int _argc, const char** _argv) {
// init Google test : // init Google test :

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
namespace river_test_echo_delay { namespace river_test_echo_delay {
class TestClass { class TestClass {

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
namespace river_test_muxer { namespace river_test_muxer {
class TestClass { class TestClass {

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
namespace river_test_record_callback { namespace river_test_record_callback {
static const std::string configurationRiver = static const std::string configurationRiver =

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/river/widget/debug.h> #include <audio/river/widget/debug.hpp>
#include <audio/river/widget/TemporalViewer.h> #include <audio/river/widget/TemporalViewer.hpp>
#include <etk/tool.h> #include <etk/tool.hpp>
static const int32_t nbSecond = 3; static const int32_t nbSecond = 3;

View File

@ -5,11 +5,11 @@
*/ */
#pragma once #pragma once
#include <ewol/widget/Widget.h> #include <ewol/widget/Widget.hpp>
#include <ewol/compositing/Drawing.h> #include <ewol/compositing/Drawing.hpp>
#include <audio/river/river.h> #include <audio/river/river.hpp>
#include <audio/river/Manager.h> #include <audio/river/Manager.hpp>
#include <audio/river/Interface.h> #include <audio/river/Interface.hpp>
#include <mutex> #include <mutex>
namespace audio { namespace audio {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/river/widget/debug.h> #include <audio/river/widget/debug.hpp>
int32_t audio::river::widget::getLogId() { int32_t audio::river::widget::getLogId() {

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <elog/log.h> #include <elog/log.hpp>
namespace audio { namespace audio {
namespace river { namespace river {