#pragma once #include "rsitems/rsnxsitems.h" #include "gxs/rsgxsdata.h" #define RS_SERVICE_TYPE_PLUGIN_SIMPLE_FORUM 0x012 bool operator==(const RsNxsGrp&, const RsNxsGrp&); bool operator==(const RsNxsMsg&, const RsNxsMsg&); bool operator==(const RsGxsGrpMetaData& l, const RsGxsGrpMetaData& r); bool operator==(const RsGxsMsgMetaData& l, const RsGxsMsgMetaData& r); bool operator==(const RsNxsSyncGrpItem& l, const RsNxsSyncGrpItem& r); bool operator==(const RsNxsSyncMsgItem& l, const RsNxsSyncMsgItem& r); bool operator==(const RsNxsSyncGrpItem& l, const RsNxsSyncGrpItem& r); bool operator==(const RsNxsSyncMsgItem& l, const RsNxsSyncMsgItem& r); bool operator==(const RsNxsTransacItem& l, const RsNxsTransacItem& r); //void init_item(RsNxsGrp& nxg); //void init_item(RsNxsMsg& nxm); void init_item(RsGxsGrpMetaData* metaGrp); void init_item(RsGxsMsgMetaData* metaMsg); RsSerialType* init_item(RsNxsGrp& nxg); RsSerialType* init_item(RsNxsMsg& nxm); RsSerialType* init_item(RsNxsSyncGrpReqItem &rsg); RsSerialType* init_item(RsNxsSyncMsgReqItem &rsgm); RsSerialType* init_item(RsNxsSyncGrpItem& rsgl); RsSerialType* init_item(RsNxsSyncMsgItem& rsgml); RsSerialType* init_item(RsNxsTransacItem& rstx); template void copy_all_but(T& ex, const std::list& s, std::list& d) { typename std::list::const_iterator cit = s.begin(); for(; cit != s.end(); cit++) if(*cit != ex) d.push_back(*cit); }