Skip to content

Commit cddc85b

Browse files
committed
partial moved to namespace, doesnt compile
1 parent cb497b3 commit cddc85b

7 files changed

Lines changed: 16 additions & 4 deletions

File tree

Source/Plugins/LfpDisplayNodeBeta/LfpDisplayCanvas.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525

2626
#include <math.h>
2727

28+
using namespace LfpDisplayNodeBeta;
29+
2830
LfpDisplayCanvas::LfpDisplayCanvas(LfpDisplayNode* processor_) :
2931
timebase(1.0f), displayGain(1.0f), timeOffset(0.0f),
3032
processor(processor_), selectedChannelType(HEADSTAGE_CHANNEL)

Source/Plugins/LfpDisplayNodeBeta/LfpDisplayCanvas.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include "../../Processors/Visualization/Visualizer.h"
2929
#define CHANNEL_TYPES 3
3030

31+
namespace LfpDisplayNodeBeta {
32+
3133
class LfpDisplayNode;
3234

3335
class LfpTimescale;
@@ -480,6 +482,6 @@ class LfpViewport : public Viewport
480482
private:
481483
LfpDisplayCanvas* canvas;
482484
};
483-
485+
};
484486

485487
#endif // __LFPDISPLAYCANVAS_H_B711873A__

Source/Plugins/LfpDisplayNodeBeta/LfpDisplayEditor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
#include "LfpDisplayEditor.h"
2525

26+
using namespace LfpDisplayNodeBeta;
27+
2628

2729
LfpDisplayEditor::LfpDisplayEditor(GenericProcessor* parentNode, bool useDefaultParameterEditors=true)
2830
: VisualizerEditor(parentNode, useDefaultParameterEditors)

Source/Plugins/LfpDisplayNodeBeta/LfpDisplayEditor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "LfpDisplayCanvas.h"
3434
#include "../../Processors/Editors/VisualizerEditor.h"
3535

36+
namespace LfpDisplayNodeBeta {
3637
class Visualizer;
3738

3839
/**
@@ -59,5 +60,5 @@ class LfpDisplayEditor : public VisualizerEditor
5960
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(LfpDisplayEditor);
6061

6162
};
62-
63+
};
6364
#endif // __LFPDISPLAYEDITOR_H_3438800D__

Source/Plugins/LfpDisplayNodeBeta/LfpDisplayNode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#include "LfpDisplayCanvas.h"
2626
#include <stdio.h>
2727

28+
using namespace LfpDisplayNodeBeta;
29+
2830
LfpDisplayNode::LfpDisplayNode()
2931
: GenericProcessor("LFP Viewer Beta"),
3032
displayGain(1), bufferLength(5.0f),

Source/Plugins/LfpDisplayNodeBeta/LfpDisplayNode.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "../../Processors/Editors/VisualizerEditor.h"
3030
#include "../../Processors/GenericProcessor/GenericProcessor.h"
3131

32+
namespace LfpDisplayNodeBeta {
3233
class DataViewport;
3334

3435
/**
@@ -109,7 +110,7 @@ class LfpDisplayNode : public GenericProcessor
109110
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(LfpDisplayNode);
110111

111112
};
112-
113+
};
113114

114115

115116

Source/Plugins/LfpDisplayNodeBeta/OpenEphysLib.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3232
#endif
3333

3434
using namespace Plugin;
35+
using namespace LfpDisplayNodeBeta;
36+
3537
#define NUM_PLUGINS 1
3638

3739
extern "C" EXPORT void getLibInfo(Plugin::LibraryInfo* info)
@@ -50,7 +52,7 @@ extern "C" EXPORT int getPluginInfo(int index, Plugin::PluginInfo* info)
5052
info->type = Plugin::ProcessorPlugin;
5153
info->processor.name = "LFP Viewer Beta";
5254
info->processor.type = Plugin::SinkProcessor;
53-
info->processor.creator = &(Plugin::createProcessor<LfpDisplayNode>);
55+
info->processor.creator = &(Plugin::createProcessor<LfpDisplayNodeBeta::LfpDisplayNode>);
5456
break;
5557
default:
5658
return -1;

0 commit comments

Comments
 (0)