summaryrefslogtreecommitdiff
path: root/NT
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2014-02-11 10:51:02 +0000
committerTim Redfern <tim@eclectronics.org>2014-02-11 10:51:02 +0000
commit98deb07854e39eee7861278b3a319b3a0edfb3c8 (patch)
tree4293676a6739f29af71327372983dc80554f8c90 /NT
parent4209aef911e38f494dcd0a97879277f9f2e0e8b4 (diff)
only use one decoder object in video bank
Diffstat (limited to 'NT')
-rw-r--r--NT/src/rotor.cpp8
-rw-r--r--NT/src/rotor.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/NT/src/rotor.cpp b/NT/src/rotor.cpp
index 1c46cad..5f75826 100644
--- a/NT/src/rotor.cpp
+++ b/NT/src/rotor.cpp
@@ -9,6 +9,12 @@
using namespace std;
using namespace Rotor;
+std::istream& operator>> (std::istream &in, Rotor::Enum &en)
+{
+ in >> en.value;
+ return in;
+};
+
string Variable::get_connection_id(){
if (connection) return connection->get_id();
return "";
@@ -64,7 +70,7 @@ Json::Value Node::to_json(){
}
}
return node;
-}
+};
diff --git a/NT/src/rotor.h b/NT/src/rotor.h
index 72843a2..6d56299 100644
--- a/NT/src/rotor.h
+++ b/NT/src/rotor.h
@@ -93,17 +93,11 @@ namespace Rotor {
operator int () const { //overload C style cast to int
return value;
}
- friend istream& operator>> (istream &in, Enum &en);
+ friend std::istream& operator>> (std::istream &in, Rotor::Enum &en);
private:
std::vector<std::string> labels;
int value;
};
-
- istream& operator>> (istream &in, Enum &en)
- {
- in >> en.value;
- return in;
- };
class Audio_frame{
public: