Пример #1
0
 virtual void report(StringBuffer &out)
 {
     unsigned __int64 d = distinct();
     out.append("<Field name=\"").append(fieldname).append("\"");
     if (exact())
     {
         out.append(" distinct=\"").append(d).append("\">\n");
         reportValues(out);
         out.append("</Field>\n");
     }
     else
         out.append(" estimate=\"").append(d).append("\"/>\n");
 }
Пример #2
0
void asipDistanceClass::processRequestMsg(Stream *stream)
{
   int request = stream->read();
   if( request == tag_AUTOEVENT_REQUEST) {
      setAutoreport(stream);
   }
   else if(request == tag_DISTANCE_MEASURE){ 
      reportValues(stream);  // send a single measurement
   }
      
   else {
     reportError(ServiceId, request, ERR_UNKNOWN_REQUEST, stream);
   }
}