source/train/XLeader.cpp
void XLeader::AddCollectWorker(DATA_COLLECT_TYPE mode)
{
    XWorkerCollect * worker = new XWorkerCollect();
    worker->SetCollectMode(mode);
    cworkers.Add(worker);
}
/* 
add a data-collecting worker 
>> mode - the data-transfer mode of the worker
*/
add a data-collecting worker
>> mode - the data-transfer mode of the worker
add a data - collecting worker >> mode - the data - transfer mode of the worker
void XLeader::AddCollectWorker(DATA_COLLECT_TYPE mode)
{
    XWorkerCollect * worker = new XWorkerCollect();
    worker->SetCollectMode(mode);
    cworkers.Add(worker);
}
void XLeader :: AddCollectWorker ( DATA_COLLECT_TYPE mode ) { XWorkerCollect * worker = new XWorkerCollect ( ) ; worker -> SetCollectMode ( mode ) ; cworkers . Add ( worker ) ; }
add a data-collecting worker
>> mode - the data-transfer mode of the worker
add a data - collecting worker >> mode - the data - transfer mode of the worker