[Com0com-cvs] hub4com filters.cpp,1.2,1.3 filters.h,1.2,1.3
The virtual serial port driver for Windows.
Brought to you by:
vfrolov
From: Vyacheslav F. <vf...@us...> - 2008-08-20 08:32:39
|
Update of /cvsroot/com0com/hub4com In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv29543 Modified Files: filters.cpp filters.h Log Message: Implemented Filters::FilterName() Index: filters.h =================================================================== RCS file: /cvsroot/com0com/hub4com/filters.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** filters.h 16 Apr 2008 14:13:59 -0000 1.2 --- filters.h 20 Aug 2008 08:32:35 -0000 1.3 *************** *** 20,23 **** --- 20,26 ---- * * $Log$ + * Revision 1.3 2008/08/20 08:32:35 vfrolov + * Implemented Filters::FilterName() + * * Revision 1.2 2008/04/16 14:13:59 vfrolov * Added ability to specify source posts for OUT method *************** *** 60,63 **** --- 63,67 ---- void Report() const; BOOL Init() const; + const char *FilterName(HFILTER hFilter) const; BOOL InMethod( int nFromPort, Index: filters.cpp =================================================================== RCS file: /cvsroot/com0com/hub4com/filters.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** filters.cpp 16 Apr 2008 14:13:59 -0000 1.2 --- filters.cpp 20 Aug 2008 08:32:35 -0000 1.3 *************** *** 20,23 **** --- 20,26 ---- * * $Log$ + * Revision 1.3 2008/08/20 08:32:35 vfrolov + * Implemented Filters::FilterName() + * * Revision 1.2 2008/04/16 14:13:59 vfrolov * Added ability to specify source posts for OUT method *************** *** 314,317 **** --- 317,330 ---- } /////////////////////////////////////////////////////////////// + const char *Filters::FilterName(HFILTER hFilter) const + { + for (FilterArray::const_iterator i = allFilters.begin() ; i != allFilters.end() ; i++) { + if (*i && (*i)->hFilter == hFilter) + return (*i)->name.c_str(); + } + + return NULL; + } + /////////////////////////////////////////////////////////////// static BOOL InMethod( int nFromPort, |