#ifndef __X10_IO_MARSHAL__USHORTMARSHAL_H
#define __X10_IO_MARSHAL__USHORTMARSHAL_H

#include <x10rt.h>


#define X10_LANG_OBJECT_H_NODEPS
#include <x10/lang/Object.h>
#undef X10_LANG_OBJECT_H_NODEPS
#define X10_IO_MARSHAL_H_NODEPS
#include <x10/io/Marshal.h>
#undef X10_IO_MARSHAL_H_NODEPS
namespace x10 { namespace lang { 
class UShort;
} } 
namespace x10 { namespace io { 
class Reader;
} } 
namespace x10 { namespace io { 
class Writer;
} } 
namespace x10 { namespace lang { 
class Short;
} } 
namespace x10 { namespace io { 

class Marshal__UShortMarshal : public x10::lang::Object   {
    public:
    RTT_H_DECLS_CLASS
    
    static x10aux::itable_entry _itables[3];
    
    virtual x10aux::itable_entry* _getITables() { return _itables; }
    
    static x10::io::Marshal<x10_ushort>::itable<x10::io::Marshal__UShortMarshal > _itable_0;
    
    static x10::lang::Any::itable<x10::io::Marshal__UShortMarshal > _itable_1;
    
    virtual x10_ushort read(x10aux::ref<x10::io::Reader> r);
    virtual void write(x10aux::ref<x10::io::Writer> w, x10_ushort us);
    virtual x10aux::ref<x10::io::Marshal__UShortMarshal> x10__io__Marshal__UShortMarshal____x10__io__Marshal__UShortMarshal__this(
      );
    void _constructor();
    
    static x10aux::ref<x10::io::Marshal__UShortMarshal> _make();
    
    
    // Serialization
    public: static const x10aux::serialization_id_t _serialization_id;
    
    public: virtual x10aux::serialization_id_t _get_serialization_id() {
         return _serialization_id;
    }
    
    public: virtual void _serialize_body(x10aux::serialization_buffer& buf);
    
    public: static x10aux::ref<x10::lang::Reference> _deserializer(x10aux::deserialization_buffer& buf);
    
    public: void _deserialize_body(x10aux::deserialization_buffer& buf);
    
};

} } 
#endif // X10_IO_MARSHAL__USHORTMARSHAL_H

namespace x10 { namespace io { 
class Marshal__UShortMarshal;
} } 

#ifndef X10_IO_MARSHAL__USHORTMARSHAL_H_NODEPS
#define X10_IO_MARSHAL__USHORTMARSHAL_H_NODEPS
#ifndef X10_IO_MARSHAL__USHORTMARSHAL_H_GENERICS
#define X10_IO_MARSHAL__USHORTMARSHAL_H_GENERICS
#endif // X10_IO_MARSHAL__USHORTMARSHAL_H_GENERICS
#endif // __X10_IO_MARSHAL__USHORTMARSHAL_H_NODEPS
