projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some missing copy constructors / operator= / noncopyable.
[dcpomatic.git]
/
src
/
lib
/
audio_analysis.h
diff --git
a/src/lib/audio_analysis.h
b/src/lib/audio_analysis.h
index ec6905105934cf5cc78b3a48d736a98806c51001..cfc170c846ae2af87e12645e3dd84e4ba7e9c13a 100644
(file)
--- a/
src/lib/audio_analysis.h
+++ b/
src/lib/audio_analysis.h
@@
-23,6
+23,7
@@
#include <iostream>
#include <vector>
#include <list>
#include <iostream>
#include <vector>
#include <list>
+#include <boost/filesystem.hpp>
class AudioPoint
{
class AudioPoint
{
@@
-35,6
+36,8
@@
public:
AudioPoint ();
AudioPoint (std::istream &);
AudioPoint ();
AudioPoint (std::istream &);
+ AudioPoint (AudioPoint const &);
+ AudioPoint& operator= (AudioPoint const &);
void write (std::ostream &) const;
void write (std::ostream &) const;
@@
-46,11
+49,11
@@
private:
float _data[COUNT];
};
float _data[COUNT];
};
-class AudioAnalysis
+class AudioAnalysis
: public boost::noncopyable
{
public:
AudioAnalysis (int c);
{
public:
AudioAnalysis (int c);
- AudioAnalysis (
std::string
);
+ AudioAnalysis (
boost::filesystem::path
);
void add_point (int c, AudioPoint const & p);
void add_point (int c, AudioPoint const & p);
@@
-58,7
+61,7
@@
public:
int points (int c) const;
int channels () const;
int points (int c) const;
int channels () const;
- void write (
std::string
);
+ void write (
boost::filesystem::path
);
private:
std::vector<std::vector<AudioPoint> > _data;
private:
std::vector<std::vector<AudioPoint> > _data;