text: //
  //  _   _         ______    _ _ _   _             _ _ _
  // | \ | |       |  ____|  | (_) | (_)           | | | |
  // |  \| | ___   | |__   __| |_| |_ _ _ __   __ _| | | |
  // | . ` |/ _ \  |  __| / _` | | __| | '_ \ / _` | | | |
  // | |\  | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_|
  // |_| \_|\___/  |______\__,_|_|\__|_|_| |_|\__, (_|_|_)
  //                                           __/ |
  //                                          |___/
  // 
  // This file is auto-generated. Do not edit manually
  // 
  // Copyright 2013 Automatak LLC
  // 
  // Automatak LLC (www.automatak.com) licenses this file
  // to you under the the Apache License Version 2.0 (the "License"):
  // 
  // http://www.apache.org/licenses/LICENSE-2.0.html
  //
  
  #include "Group30.h"
  
  #include "opendnp3/app/MeasurementFactory.h"
  #include "opendnp3/app/WriteConversions.h"
  #include <openpal/serialization/Serialization.h>
  
  using namespace openpal;
  
  namespace opendnp3 {
  
  Group30Var1 Group30Var1::Read(ReadBufferView& buffer)
  {
    Group30Var1 obj;
    obj.flags = UInt8::Read(buffer);
    buffer.Advance(1);
    obj.value = Int32::Read(buffer);
    buffer.Advance(4);
    return obj;
  }
  
  void Group30Var1::Write(const Group30Var1& arg, openpal::WriteBufferView& buffer)
  {
    UInt8::Write(buffer, arg.flags);
    buffer.Advance(1);
    Int32::Write(buffer, arg.value);
    buffer.Advance(4);
  }
  
  
  Analog Group30Var1::ReadTarget(ReadBufferView& buff)
  {
    auto gv = Group30Var1::Read(buff);
    return AnalogFactory::From(gv.flags, gv.value);
  }
  
  void Group30Var1::WriteTarget(const Analog& value, openpal::WriteBufferView& buff)
  {
    Group30Var1::Write(ConvertGroup30Var1::Apply(value), buff);
  }
  
  
  Group30Var2 Group30Var2::Read(ReadBufferView& buffer)
  {
    Group30Var2 obj;
    obj.flags = UInt8::Read(buffer);
    buffer.Advance(1);
    obj.value = Int16::Read(buffer);
    buffer.Advance(2);
    return obj;
  }
  
  void Group30Var2::Write(const Group30Var2& arg, openpal::WriteBufferView& buffer)
  {
    UInt8::Write(buffer, arg.flags);
    buffer.Advance(1);
    Int16::Write(buffer, arg.value);
    buffer.Advance(2);
  }
  
  
  Analog Group30Var2::ReadTarget(ReadBufferView& buff)
  {
    auto gv = Group30Var2::Read(buff);
    return AnalogFactory::From(gv.flags, gv.value);
  }
  
  void Group30Var2::WriteTarget(const Analog& value, openpal::WriteBufferView& buff)
  {
    Group30Var2::Write(ConvertGroup30Var2::Apply(value), buff);
  }
  
  
  Group30Var3 Group30Var3::Read(ReadBufferView& buffer)
  {
    Group30Var3 obj;
    obj.value = Int32::Read(buffer);
    buffer.Advance(4);
    return obj;
  }
  
  void Group30Var3::Write(const Group30Var3& arg, openpal::WriteBufferView& buffer)
  {
    Int32::Write(buffer, arg.value);
    buffer.Advance(4);
  }
  
  
  Analog Group30Var3::ReadTarget(ReadBufferView& buff)
  {
    auto gv = Group30Var3::Read(buff);
    return AnalogFactory::From(gv.value);
  }
  
  void Group30Var3::WriteTarget(const Analog& value, openpal::WriteBufferView& buff)
  {
    Group30Var3::Write(ConvertGroup30Var3::Apply(value), buff);
  }
  
  
  Group30Var4 Group30Var4::Read(ReadBufferView& buffer)
  {
    Group30Var4 obj;
    obj.value = Int16::Read(buffer);
    buffer.Advance(2);
    return obj;
  }
  
  void Group30Var4::Write(const Group30Var4& arg, openpal::WriteBufferView& buffer)
  {
    Int16::Write(buffer, arg.value);
    buffer.Advance(2);
  }
  
  
  Analog Group30Var4::ReadTarget(ReadBufferView& buff)
  {
    auto gv = Group30Var4::Read(buff);
    return AnalogFactory::From(gv.value);
  }
  
  void Group30Var4::WriteTarget(const Analog& value, openpal::WriteBufferView& buff)
  {
    Group30Var4::Write(ConvertGroup30Var4::Apply(value), buff);
  }
  
  
  Group30Var5 Group30Var5::Read(ReadBufferView& buffer)
  {
    Group30Var5 obj;
    obj.flags = UInt8::Read(buffer);
    buffer.Advance(1);
    obj.value = SingleFloat::Read(buffer);
    buffer.Advance(4);
    return obj;
  }
  
  void Group30Var5::Write(const Group30Var5& arg, openpal::WriteBufferView& buffer)
  {
    UInt8::Write(buffer, arg.flags);
    buffer.Advance(1);
    SingleFloat::Write(buffer, arg.value);
    buffer.Advance(4);
  }
  
  
  Analog Group30Var5::ReadTarget(ReadBufferView& buff)
  {
    auto gv = Group30Var5::Read(buff);
    return AnalogFactory::From(gv.flags, gv.value);
  }
  
  void Group30Var5::WriteTarget(const Analog& value, openpal::WriteBufferView& buff)
  {
    Group30Var5::Write(ConvertGroup30Var5::Apply(value), buff);
  }
  
  
  Group30Var6 Group30Var6::Read(ReadBufferView& buffer)
  {
    Group30Var6 obj;
    obj.flags = UInt8::Read(buffer);
    buffer.Advance(1);
    obj.value = DoubleFloat::Read(buffer);
    buffer.Advance(8);
    return obj;
  }
  
  void Group30Var6::Write(const Group30Var6& arg, openpal::WriteBufferView& buffer)
  {
    UInt8::Write(buffer, arg.flags);
    buffer.Advance(1);
    DoubleFloat::Write(buffer, arg.value);
    buffer.Advance(8);
  }
  
  
  Analog Group30Var6::ReadTarget(ReadBufferView& buff)
  {
    auto gv = Group30Var6::Read(buff);
    return AnalogFactory::From(gv.flags, gv.value);
  }
  
  void Group30Var6::WriteTarget(const Analog& value, openpal::WriteBufferView& buff)
  {
    Group30Var6::Write(ConvertGroup30Var6::Apply(value), buff);
  }
  
  
  
  }
  