Skip to content

Commit

Permalink
Renamed all .h to .hpp for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
korslund committed Jun 3, 2010
1 parent 52e7570 commit 6b0b7c9
Show file tree
Hide file tree
Showing 53 changed files with 80 additions and 79 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANGLE_INPUT_FILTER_H
#define MANGLE_INPUT_FILTER_H

#include "../output.h"
#include "../output.hpp"

#include <assert.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef MANGLE_FFMPEG_OPENAL_H
#define MANGLE_FFMPEG_OPENAL_H

#include "input_filter.h"
#include "../sources/audiere_source.h"
#include "../outputs/openal_out.h"
#include "input_filter.hpp"
#include "../sources/audiere_source.hpp"
#include "../outputs/openal_out.hpp"

namespace Mangle {
namespace Sound {
Expand Down
4 changes: 2 additions & 2 deletions sound/output.h → sound/output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#define MANGLE_SOUND_OUTPUT_H

#include <string>
#include "source.h"
#include "source.hpp"

#include "../stream/stream.h"
#include "../stream/stream.hpp"

namespace Mangle {
namespace Sound {
Expand Down
6 changes: 3 additions & 3 deletions sound/outputs/openal_out.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "openal_out.h"
#include "openal_out.hpp"
#include <assert.h>

#include "../../stream/filters/buffer_stream.h"
#include "../../tools/str_exception.h"
#include "../../stream/filters/buffer_stream.hpp"
#include "../../tools/str_exception.hpp"

using namespace Mangle::Sound;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANGLE_SOUND_OPENAL_OUT_H
#define MANGLE_SOUND_OPENAL_OUT_H

#include "../output.h"
#include "../output.hpp"

#include <AL/al.h>
#include <AL/alc.h>
Expand Down
2 changes: 1 addition & 1 deletion sound/source.h → sound/source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <stdint.h>
#include <assert.h>

#include "../stream/stream.h"
#include "../stream/stream.hpp"

namespace Mangle {
namespace Sound {
Expand Down
6 changes: 3 additions & 3 deletions sound/sources/audiere_source.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "audiere_source.h"
#include "audiere_source.hpp"

#include "../../stream/clients/audiere_file.h"
#include "../../tools/str_exception.h"
#include "../../stream/clients/audiere_file.hpp"
#include "../../tools/str_exception.hpp"

using namespace Mangle::Stream;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANGLE_SOUND_AUDIERE_SOURCE_H
#define MANGLE_SOUND_AUDIERE_SOURCE_H

#include "../source.h"
#include "../source.hpp"

#include <audiere.h>

Expand Down Expand Up @@ -46,7 +46,7 @@ class AudiereSource : public SampleSource
size_t size() const { return sample->getLength()*frameSize; }
};

#include "loadertemplate.h"
#include "loadertemplate.hpp"

/// A factory that loads AudiereSources from file and stream
typedef SSL_Template<AudiereSource,true,true> AudiereLoader;
Expand Down
4 changes: 2 additions & 2 deletions sound/sources/ffmpeg_source.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "ffmpeg_source.h"
#include "ffmpeg_source.hpp"

#include "../../tools/str_exception.h"
#include "../../tools/str_exception.hpp"

using namespace Mangle::Sound;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANGLE_SOUND_FFMPEG_H
#define MANGLE_SOUND_FFMPEG_H

#include "../source.h"
#include "../source.hpp"
#include <vector>
#include <assert.h>

Expand Down Expand Up @@ -36,7 +36,7 @@ class FFMpegSource : public SampleSource
size_t read(void *data, size_t length);
};

#include "loadertemplate.h"
#include "loadertemplate.hpp"

/// A factory that loads FFMpegSources from file
class FFMpegLoader : public SSL_Template<FFMpegSource,false,true>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANGLE_SOUND_STREAMSOURCE_H
#define MANGLE_SOUND_STREAMSOURCE_H

#include "../source.h"
#include "../source.hpp"

namespace Mangle {
namespace Sound {
Expand Down
4 changes: 2 additions & 2 deletions sound/tests/audiere_source_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <iostream>

#include "../../stream/servers/file_stream.h"
#include "../sources/audiere_source.h"
#include "../../stream/servers/file_stream.hpp"
#include "../sources/audiere_source.hpp"

#include <assert.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions sound/tests/ffmpeg_source_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <iostream>

#include "../../stream/servers/file_stream.h"
#include "../sources/ffmpeg_source.h"
#include "../../stream/servers/file_stream.hpp"
#include "../sources/ffmpeg_source.hpp"

#include <assert.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions sound/tests/openal_audiere_test.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <iostream>
#include <exception>

#include "../../stream/servers/file_stream.h"
#include "../filters/openal_audiere.h"
#include "../../stream/servers/file_stream.hpp"
#include "../filters/openal_audiere.hpp"

using namespace std;
using namespace Mangle::Stream;
Expand Down
6 changes: 3 additions & 3 deletions sound/tests/openal_output_test.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <iostream>
#include <exception>

#include "../../stream/servers/file_stream.h"
#include "../sources/stream_source.h"
#include "../outputs/openal_out.h"
#include "../../stream/servers/file_stream.hpp"
#include "../sources/stream_source.hpp"
#include "../outputs/openal_out.hpp"

using namespace std;
using namespace Mangle::Stream;
Expand Down
2 changes: 1 addition & 1 deletion stream/clients/audiere_file.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "audiere_file.h"
#include "audiere_file.hpp"

using namespace audiere;
using namespace Mangle::Stream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <audiere.h>
#include <assert.h>

#include "../stream.h"
#include "../stream.hpp"

namespace Mangle {
namespace Stream {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <OgreDataStream.h>
#include <assert.h>
#include "../stream.h"
#include "../stream.hpp"

namespace Mangle {
namespace Stream {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANGLE_STREAM_BUFFER_H
#define MANGLE_STREAM_BUFFER_H

#include "../servers/memory_stream.h"
#include "../servers/memory_stream.hpp"
#include <vector>

namespace Mangle {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANGLE_STREAM_FILTER_H
#define MANGLE_STREAM_FILTER_H

#include "../stream.h"
#include "../stream.hpp"

namespace Mangle {
namespace Stream {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANGLE_STREAM_SLICE_H
#define MANGLE_STREAM_SLICE_H

#include "../stream.h"
#include "../stream.hpp"

namespace Mangle {
namespace Stream {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANGLE_STREAM_FILESERVER_H
#define MANGLE_STREAM_FILESERVER_H

#include "std_stream.h"
#include "std_stream.hpp"
#include <fstream>

namespace Mangle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define MANGLE_STREAM_MEMSERVER_H

#include <assert.h>
#include "../stream.h"
#include "../stream.hpp"
#include <string.h>

namespace Mangle {
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions stream/servers/std_stream.h → stream/servers/std_stream.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef MANGLE_STREAM_STDIOSERVER_H
#define MANGLE_STREAM_STDIOSERVER_H

#include "../stream.h"
#include "../stream.hpp"
#include <iostream>
#include "../../tools/str_exception.h"
#include "../../tools/str_exception.hpp"

namespace Mangle {
namespace Stream {
Expand Down
2 changes: 1 addition & 1 deletion stream/stream.h → stream/stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define MANGLE_STREAM_INPUT_H

#include <stdlib.h>
#include "../tools/shared_ptr.h"
#include "../tools/shared_ptr.hpp"
#include <assert.h>

namespace Mangle {
Expand Down
12 changes: 6 additions & 6 deletions stream/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ I_OGRE=$(shell pkg-config --cflags OGRE)
L_OGRE=$(shell pkg-config --libs OGRE)
L_AUDIERE=-laudiere

ogre_client_test: ogre_client_test.cpp ../stream.h ../clients/ogre_datastream.h
ogre_client_test: ogre_client_test.cpp ../stream.hpp ../clients/ogre_datastream.hpp
$(GCC) $< -o $@ $(I_OGRE) $(L_OGRE)

audiere_client_test: audiere_client_test.cpp ../stream.h ../clients/audiere_file.h ../clients/audiere_file.cpp
audiere_client_test: audiere_client_test.cpp ../stream.hpp ../clients/audiere_file.hpp ../clients/audiere_file.cpp
$(GCC) $< -o $@ ../clients/audiere_file.cpp $(L_AUDIERE)

file_server_test: file_server_test.cpp ../stream.h ../servers/file_stream.h ../servers/std_stream.h
file_server_test: file_server_test.cpp ../stream.hpp ../servers/file_stream.hpp ../servers/std_stream.hpp
$(GCC) $< -o $@

memory_server_test: memory_server_test.cpp ../stream.h ../servers/memory_stream.h
memory_server_test: memory_server_test.cpp ../stream.hpp ../servers/memory_stream.hpp
$(GCC) $< -o $@

buffer_filter_test: buffer_filter_test.cpp ../stream.h ../servers/memory_stream.h ../filters/buffer_stream.h
buffer_filter_test: buffer_filter_test.cpp ../stream.hpp ../servers/memory_stream.hpp ../filters/buffer_stream.hpp
$(GCC) $< -o $@

slice_filter_test: slice_filter_test.cpp ../stream.h ../servers/memory_stream.h ../filters/slice_stream.h
slice_filter_test: slice_filter_test.cpp ../stream.hpp ../servers/memory_stream.hpp ../filters/slice_stream.hpp
$(GCC) $< -o $@

clean:
Expand Down
4 changes: 2 additions & 2 deletions stream/tests/audiere_client_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "../servers/memory_stream.h"
#include "../clients/audiere_file.h"
#include "../servers/memory_stream.hpp"
#include "../clients/audiere_file.hpp"
#include <audiere.h>
#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion stream/tests/buffer_filter_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <iostream>
#include <string.h>

#include "../filters/buffer_stream.h"
#include "../filters/buffer_stream.hpp"

using namespace Mangle::Stream;
using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion stream/tests/file_server_test.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../servers/file_stream.h"
#include "../servers/file_stream.hpp"
#include <iostream>

using namespace Mangle::Stream;
Expand Down
2 changes: 1 addition & 1 deletion stream/tests/memory_server_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <iostream>
#include <string.h>

#include "../servers/memory_stream.h"
#include "../servers/memory_stream.hpp"

using namespace Mangle::Stream;
using namespace std;
Expand Down
4 changes: 2 additions & 2 deletions stream/tests/ogre_client_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "../servers/memory_stream.h"
#include "../clients/ogre_datastream.h"
#include "../servers/memory_stream.hpp"
#include "../clients/ogre_datastream.hpp"
#include <iostream>

using namespace Mangle::Stream;
Expand Down
4 changes: 2 additions & 2 deletions stream/tests/slice_filter_test.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <iostream>
#include <string.h>

#include "../filters/slice_stream.h"
#include "../servers/memory_stream.h"
#include "../filters/slice_stream.hpp"
#include "../servers/memory_stream.hpp"

using namespace Mangle::Stream;
using namespace std;
Expand Down
1 change: 1 addition & 0 deletions testall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

function run()
{
echo "TESTING $1"
cd "$1/tests/"
./test.sh
cd ../../
Expand Down
4 changes: 2 additions & 2 deletions tests/ogrevfs_audiere_openal_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*/

#include "sound/filters/openal_audiere.h"
#include "vfs/servers/ogre_vfs.h"
#include "sound/filters/openal_audiere.hpp"
#include "vfs/servers/ogre_vfs.hpp"
#include <Ogre.h>
#include <iostream>

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions vfs/clients/ogre_archive.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "ogre_archive.h"
#include "ogre_archive.hpp"

#include "../../stream/clients/ogre_datastream.h"
#include "../../stream/clients/ogre_datastream.hpp"

using namespace Mangle::VFS;
using namespace Mangle::Stream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <OgreArchive.h>
#include <assert.h>
#include "../vfs.h"
#include "../vfs.hpp"

namespace Mangle {
namespace VFS {
Expand Down
4 changes: 2 additions & 2 deletions vfs/servers/ogre_vfs.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "ogre_vfs.h"
#include "../../stream/servers/ogre_datastream.h"
#include "ogre_vfs.hpp"
#include "../../stream/servers/ogre_datastream.hpp"

using namespace Mangle::VFS;
using namespace Mangle::Stream;
Expand Down
2 changes: 1 addition & 1 deletion vfs/servers/ogre_vfs.h → vfs/servers/ogre_vfs.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANGLE_VFS_OGRESERVER_H
#define MANGLE_VFS_OGRESERVER_H

#include "../vfs.h"
#include "../vfs.hpp"
#include <OgreResourceGroupManager.h>

namespace Mangle {
Expand Down

0 comments on commit 6b0b7c9

Please sign in to comment.