1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
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 //
9 #include <anna/comm/Codec.hpp>
11 #include <anna/core/util/Second.hpp>
12 #include <anna/core/util/Millisecond.hpp>
13 #include <anna/core/util/Microsecond.hpp>
18 const comm::Variable* comm::Codec::attach(const char* name, Second& value)
19 throw(RuntimeException) {
20 return CompatCodec::attach(name, size(), value.refValue());
23 const comm::Variable* comm::Codec::attach(const char* name, Millisecond& value)
24 throw(RuntimeException) {
25 return CompatCodec::attach(name, size(), (int&) value.refValue());
28 const comm::Variable* comm::Codec::attach(const char* name, Microsecond& value)
29 throw(RuntimeException) {
30 return CompatCodec::attach(name, size(), (S64&) value.refValue());