Example #1
0
void TableSerializer::link(const String& s,BitFlags& f,int m)
{
	int v=f.get(m)?1:0;
	link(s,v);
	if(type==READER)
	{
		f.set(m,v!=0);
	}
}
Example #2
0
	void Handle(LogRecord& o)
	{
		if(o.m_nLevel==LOGLEVEL_WARNING)
		{
			m_nWrnCount++;
		}
		if(o.m_nLevel>LOGLEVEL_WARNING)
		{
			m_nErrCount++;
		}

		if(flags.get(FLAG_CACHED))
		{
			m_aMsg.push_back(o);
		}
		else if(m_refData)
		{
			m_refData->Handle(o);
		}
	}