[DEV/API] change .h in .hpp

This commit is contained in:
Edouard DUPIN 2016-10-02 20:37:21 +02:00
parent 4e0c07f683
commit 6488a23337
48 changed files with 109 additions and 110 deletions

View File

@ -5,9 +5,9 @@
*/ */
#include <audio/Time.h> #include <audio/Time.hpp>
#include <audio/Duration.h> #include <audio/Duration.hpp>
#include <audio/debug.h> #include <audio/debug.hpp>
audio::Duration::Duration(int _val) { audio::Duration::Duration(int _val) {
m_data = std::chrono::nanoseconds(_val); m_data = std::chrono::nanoseconds(_val);

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <etk/types.h> #include <etk/types.hpp>
#include <chrono> #include <chrono>
namespace audio { namespace audio {

View File

@ -5,9 +5,9 @@
*/ */
#include <audio/Time.h> #include <audio/Time.hpp>
#include <audio/Duration.h> #include <audio/Duration.hpp>
#include <audio/debug.h> #include <audio/debug.hpp>
audio::Time::Time(int64_t _valSec, int64_t _valNano) { audio::Time::Time(int64_t _valSec, int64_t _valNano) {
m_data = std::chrono::steady_clock::time_point(std::chrono::seconds(_valSec)); m_data = std::chrono::steady_clock::time_point(std::chrono::seconds(_valSec));

View File

@ -6,7 +6,7 @@
#pragma once #pragma once
#include <string> #include <string>
#include <etk/types.h> #include <etk/types.hpp>
#include <chrono> #include <chrono>
namespace audio { namespace audio {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/channel.h> #include <audio/channel.hpp>
#include <audio/debug.h> #include <audio/debug.hpp>
#include <etk/stdTools.h> #include <etk/stdTools.hpp>
static const char* listValues[] = { static const char* listValues[] = {
"unknow", "unknow",

View File

@ -7,7 +7,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <etk/types.h> #include <etk/types.hpp>
#ifdef ETK_EXTERN_FRAMEWORK_ROS #ifdef ETK_EXTERN_FRAMEWORK_ROS
#include <ros/ros.h> #include <ros/ros.h>

View File

@ -4,8 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
int32_t audio::getLogId() { int32_t audio::getLogId() {
static int32_t g_val = elog::registerInstance("audio"); static int32_t g_val = elog::registerInstance("audio");

View File

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

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
#include <audio/double_t.h> #include <audio/double_t.hpp>
audio::double_t::double_t(const audio::int8_8_t& _val) { audio::double_t::double_t(const audio::int8_8_t& _val) {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
class double_t { class double_t {

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
#include <audio/float_t.h> #include <audio/float_t.hpp>
audio::float_t::float_t(const audio::int8_8_t& _val) { audio::float_t::float_t(const audio::int8_8_t& _val) {

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
class float_t { class float_t {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
#include <audio/format.h> #include <audio/format.hpp>
#include <etk/stdTools.h> #include <etk/stdTools.hpp>
static const char* listValues[] = { static const char* listValues[] = {
"unknow", "unknow",

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/int16_16_t.h> #include <audio/int16_16_t.hpp>
#include <audio/debug.h> #include <audio/debug.hpp>
audio::int16_16_t::int16_16_t(const audio::int8_8_t& _val) { audio::int16_16_t::int16_16_t(const audio::int8_8_t& _val) {
m_data = int16_t(_val.get()) << 8; m_data = int16_t(_val.get()) << 8;

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
/** /**

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
#include <audio/int16_32_t.h> #include <audio/int16_32_t.hpp>
audio::int16_32_t::int16_32_t(const audio::int8_8_t& _val) { audio::int16_32_t::int16_32_t(const audio::int8_8_t& _val) {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
/** /**

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/int24_24_t.h> #include <audio/int24_24_t.hpp>
#include <audio/debug.h> #include <audio/debug.hpp>

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
/** /**

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
#include <audio/int24_32_t.h> #include <audio/int24_32_t.hpp>
audio::int24_32_t::int24_32_t(const audio::int8_8_t& _val) { audio::int24_32_t::int24_32_t(const audio::int8_8_t& _val) {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
/** /**

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
#include <audio/int32_32_t.h> #include <audio/int32_32_t.hpp>
audio::int32_32_t::int32_32_t(const audio::int8_8_t& _val) { audio::int32_32_t::int32_32_t(const audio::int8_8_t& _val) {
m_data = int32_t(_val.get()) << 24; m_data = int32_t(_val.get()) << 24;

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
/** /**

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
#include <audio/int32_64_t.h> #include <audio/int32_64_t.hpp>
audio::int32_64_t::int32_64_t(const audio::int8_8_t& _val) { audio::int32_64_t::int32_64_t(const audio::int8_8_t& _val) {
m_data = int64_t(_val.get()) << 25; m_data = int64_t(_val.get()) << 25;

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
class int32_64_t { class int32_64_t {

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
#include <audio/int64_64_t.h> #include <audio/int64_64_t.hpp>
audio::int64_64_t::int64_64_t(const audio::int8_8_t& _val) { audio::int64_64_t::int64_64_t(const audio::int8_8_t& _val) {
m_data = int64_t(_val.get()) << 56; m_data = int64_t(_val.get()) << 56;

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
class int64_64_t { class int64_64_t {

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
#include <audio/int8_16_t.h> #include <audio/int8_16_t.hpp>
audio::int8_16_t::int8_16_t(const audio::int8_8_t& _val) { audio::int8_16_t::int8_16_t(const audio::int8_8_t& _val) {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
/** /**

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <audio/debug.h> #include <audio/debug.hpp>
#include <audio/int8_8_t.h> #include <audio/int8_8_t.hpp>
audio::int8_8_t::int8_8_t(const audio::int8_8_t& _val) { audio::int8_8_t::int8_8_t(const audio::int8_8_t& _val) {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <audio/types.h> #include <audio/types.hpp>
namespace audio { namespace audio {
/** /**

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
@ -33,14 +33,14 @@ namespace audio {
#define INT56_MIN 0xFFFF800000000000LL #define INT56_MIN 0xFFFF800000000000LL
#define INT56_MAX 0x00007FFFFFFFFFFFLL #define INT56_MAX 0x00007FFFFFFFFFFFLL
#include <audio/int8_8_t.h> #include <audio/int8_8_t.hpp>
#include <audio/int8_16_t.h> #include <audio/int8_16_t.hpp>
#include <audio/int16_16_t.h> #include <audio/int16_16_t.hpp>
#include <audio/int16_32_t.h> #include <audio/int16_32_t.hpp>
#include <audio/int24_24_t.h> #include <audio/int24_24_t.hpp>
#include <audio/int24_32_t.h> #include <audio/int24_32_t.hpp>
#include <audio/int32_32_t.h> #include <audio/int32_32_t.hpp>
#include <audio/int32_64_t.h> #include <audio/int32_64_t.hpp>
#include <audio/int64_64_t.h> #include <audio/int64_64_t.hpp>
#include <audio/float_t.h> #include <audio/float_t.hpp>
#include <audio/double_t.h> #include <audio/double_t.hpp>

View File

@ -21,10 +21,10 @@ def create(target, module_name):
'*operator<<*', '*operator<<*',
]) ])
my_module.add_exclude_file([ my_module.add_exclude_file([
'debug.h', 'debug.hpp',
]) ])
my_module.add_file_patterns([ my_module.add_file_patterns([
'*.h', '*.hpp',
'*.md', '*.md',
]) ])

View File

@ -44,22 +44,22 @@ def create(target, module_name):
'audio/double_t.cpp' 'audio/double_t.cpp'
]) ])
my_module.add_header_file([ my_module.add_header_file([
'audio/types.h', 'audio/types.hpp',
'audio/channel.h', 'audio/channel.hpp',
'audio/format.h', 'audio/format.hpp',
'audio/Time.h', 'audio/Time.hpp',
'audio/Duration.h', 'audio/Duration.hpp',
'audio/int8_8_t.h', 'audio/int8_8_t.hpp',
'audio/int8_16_t.h', 'audio/int8_16_t.hpp',
'audio/int16_16_t.h', 'audio/int16_16_t.hpp',
'audio/int16_32_t.h', 'audio/int16_32_t.hpp',
'audio/int24_24_t.h', 'audio/int24_24_t.hpp',
'audio/int24_32_t.h', 'audio/int24_32_t.hpp',
'audio/int32_32_t.h', 'audio/int32_32_t.hpp',
'audio/int32_64_t.h', 'audio/int32_64_t.hpp',
'audio/int64_64_t.h', 'audio/int64_64_t.hpp',
'audio/float_t.h', 'audio/float_t.hpp',
'audio/double_t.h' 'audio/double_t.hpp'
]) ])
my_module.add_depend(['etk']) my_module.add_depend(['etk'])
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(tools.get_current_path(__file__))

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>

View File

@ -4,15 +4,15 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.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 <audio/types.h> #include <audio/types.hpp>

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>
TEST(TestDouble, basicConstructorBase) { TEST(TestDouble, basicConstructorBase) {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>
TEST(TestFloat, basicConstructorBase) { TEST(TestFloat, basicConstructorBase) {
audio::float_t typeBase(25.0f); audio::float_t typeBase(25.0f);

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>
TEST(TestInt16_32, basicConstructorBase) { TEST(TestInt16_32, basicConstructorBase) {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>
TEST(TestInt24_24, basicConstructorBase) { TEST(TestInt24_24, basicConstructorBase) {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>
TEST(TestInt24_32, basicConstructorBase) { TEST(TestInt24_32, basicConstructorBase) {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>
TEST(TestInt32_32, basicConstructorBase) { TEST(TestInt32_32, basicConstructorBase) {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>
TEST(TestInt32_64, basicConstructorBase) { TEST(TestInt32_64, basicConstructorBase) {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>
TEST(TestInt64_64, basicConstructorBase) { TEST(TestInt64_64, basicConstructorBase) {
audio::int64_64_t typeBase(16); audio::int64_64_t typeBase(16);

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>
TEST(TestInt8_16, basicConstructorBase) { TEST(TestInt8_16, basicConstructorBase) {
audio::int8_16_t typeBase(16); audio::int8_16_t typeBase(16);

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <audio/types.h> #include <audio/types.hpp>
TEST(TestInt8_8, basicConstructorBase) { TEST(TestInt8_8, basicConstructorBase) {