2014-04-05 03:27:18 -04:00
|
|
|
#pragma once
|
|
|
|
|
2017-05-04 09:01:25 -04:00
|
|
|
#include "rsitems/rsnxsitems.h"
|
2014-04-05 03:27:18 -04:00
|
|
|
#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);
|
2016-03-26 17:25:15 -04:00
|
|
|
bool operator==(const RsNxsSyncGrpItem& l, const RsNxsSyncGrpItem& r);
|
|
|
|
bool operator==(const RsNxsSyncMsgItem& l, const RsNxsSyncMsgItem& r);
|
|
|
|
bool operator==(const RsNxsTransacItem& l, const RsNxsTransacItem& r);
|
2014-04-05 03:27:18 -04:00
|
|
|
|
|
|
|
//void init_item(RsNxsGrp& nxg);
|
|
|
|
//void init_item(RsNxsMsg& nxm);
|
|
|
|
void init_item(RsGxsGrpMetaData* metaGrp);
|
|
|
|
void init_item(RsGxsMsgMetaData* metaMsg);
|
|
|
|
|
|
|
|
|
2017-07-24 06:16:06 -04:00
|
|
|
void init_item(RsNxsGrp& nxg ,RsSerialType ** = NULL);
|
|
|
|
void init_item(RsNxsMsg& nxm ,RsSerialType ** = NULL);
|
|
|
|
void init_item(RsNxsSyncGrpReqItem &rsg ,RsSerialType ** = NULL);
|
|
|
|
void init_item(RsNxsSyncMsgReqItem &rsgm,RsSerialType ** = NULL);
|
|
|
|
void init_item(RsNxsSyncGrpItem& rsgl ,RsSerialType ** = NULL);
|
|
|
|
void init_item(RsNxsSyncMsgItem& rsgml ,RsSerialType ** = NULL);
|
|
|
|
void init_item(RsNxsTransacItem& rstx ,RsSerialType ** = NULL);
|
2014-04-05 03:27:18 -04:00
|
|
|
|
2014-05-18 12:44:19 -04:00
|
|
|
template<typename T>
|
|
|
|
void copy_all_but(T& ex, const std::list<T>& s, std::list<T>& d)
|
|
|
|
{
|
|
|
|
typename std::list<T>::const_iterator cit = s.begin();
|
|
|
|
for(; cit != s.end(); cit++)
|
|
|
|
if(*cit != ex)
|
|
|
|
d.push_back(*cit);
|
|
|
|
}
|