Update date in Doxyfile
[anna.git] / source / comm / Codec.cpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #include <anna/comm/Codec.hpp>
10
11 #include <anna/core/util/Second.hpp>
12 #include <anna/core/util/Millisecond.hpp>
13 #include <anna/core/util/Microsecond.hpp>
14
15 using namespace std;
16 using namespace anna;
17
18 const comm::Variable* comm::Codec::attach(const char* name, Second& value)
19 throw(RuntimeException) {
20   return CompatCodec::attach(name, size(), value.refValue());
21 }
22
23 const comm::Variable* comm::Codec::attach(const char* name, Millisecond& value)
24 throw(RuntimeException) {
25   return CompatCodec::attach(name, size(), (int&) value.refValue());
26 }
27
28 const comm::Variable* comm::Codec::attach(const char* name, Microsecond& value)
29 throw(RuntimeException) {
30   return CompatCodec::attach(name, size(), (S64&) value.refValue());
31 }
32