#ifndef ICE_P2_HELPERS_H #define ICE_P2_HELPERS_H #include #include template VariableType & operator>>(VariableType & vt, T & v) { v = vt.as(); return vt; } template VariableType & operator>>(VariableType & vt, IceUtil::Optional & v) { if (vt.isNull()) { v = NULL; } else { v = vt.as(); } return vt; } template <> VariableType & operator>>(VariableType & vt, short int & v); template VariableType & operator<<(VariableType & vt, const T & v) { vt = v; return vt; } template <> VariableType & operator<<(VariableType & vt, const Common::DateTime & dt); template VariableType & operator<<(VariableType & vt, const IceUtil::Optional & v) { if (v) { vt << *v; } else { vt = Null(); } return vt; } #endif