Some missing copy constructors / operator= / noncopyable.
[dcpomatic.git] / src / lib / audio_analysis.h
index 1c668b9c223daa54cbfc91e2bdadc93066148462..cfc170c846ae2af87e12645e3dd84e4ba7e9c13a 100644 (file)
 
 */
 
-#ifndef DVDOMATIC_AUDIO_ANALYSIS_H
-#define DVDOMATIC_AUDIO_ANALYSIS_H
+#ifndef DCPOMATIC_AUDIO_ANALYSIS_H
+#define DCPOMATIC_AUDIO_ANALYSIS_H
 
 #include <iostream>
 #include <vector>
+#include <list>
+#include <boost/filesystem.hpp>
 
 class AudioPoint
 {
@@ -33,10 +35,13 @@ public:
        };
 
        AudioPoint ();
+       AudioPoint (std::istream &);
+       AudioPoint (AudioPoint const &);
+       AudioPoint& operator= (AudioPoint const &);
 
        void write (std::ostream &) const;
        
-       float& operator[] (Type t) {
+       float& operator[] (int t) {
                return _data[t];
        }
 
@@ -44,13 +49,19 @@ private:
        float _data[COUNT];
 };
 
-class AudioAnalysis
+class AudioAnalysis : public boost::noncopyable
 {
 public:
        AudioAnalysis (int c);
+       AudioAnalysis (boost::filesystem::path);
 
        void add_point (int c, AudioPoint const & p);
-       void write (std::string);
+       
+       AudioPoint get_point (int c, int p) const;
+       int points (int c) const;
+       int channels () const;
+
+       void write (boost::filesystem::path);
 
 private:
        std::vector<std::vector<AudioPoint> > _data;