Example of use TracesPlay as library



List of avaliabe metods

TracesPlay library gives the possibility to control the behavior of library by using several methods of control units.
Full list methods (avaliable from version 0.2) are describe bellow, all methods belong to class TracesPlay contained in the file TracesPlayDll.h

  • void showVersionInfo();

  • display (if activateOutputToConsol was enable) library version and time and date of compiled.
  • char* getVersion();

  • return pointer to string with version label e.g "0.1.3.r203"
  • void setOutputFile(char *);

  • allow to set path and name of output file where will be writen CSV data. Default value is out.txt
  • void activateOutputToCSV();

  • enable TP to write output data to file in CSV format
  • void deactivateOutputToCSV();

  • disable TP to write output data to file in CSV format - this is default setting
  • void activateOutputToConsol();

  • enable TP to write protocols data into console
  • void deactivateOutputToConsol();

  • disable TP to write protocols data into console
  • void activateOutputToMemory();

  • enable TP to write protocols data into some space of memmory, that is forrwarde to aplication output stream
  • void deactivateOutputToMemory();

  • disable TP to write protocols data into some space of memmory, in this setting TP will not forrwarde data to aplication output stream, also will not call output stream metods.
  • void activateFastDataShare();

  • allows TP to not check data integrity, and not clean memory buffor. This allow faster work of TP, but some data maybe corupted. Default this is disabled.
  • void deactivateFastDataShare();

  • if was enabled (defualt setting) library of each sharred data will be check the integrity of the data, and allocate new buffor.
  • void activateAlwaysShareData();

  • allow TP to share data for each procotol stos, even if they wasn't all protocol fileds that we want to stretch from data
  • void deactivateAlwaysShareData();

  • (default setting) TP will not share data if they is no all requiered fileds
  • void writeHeaderToCSVFile();

  • allow TP to write some extra header info to output file. Extra header info is list of columne name;
  • void setInputDataStream(VirtualInputStream *inputStream);

  • void setOutputDataStream(OutputDataStream *ptr);

  • void setPacketRangeFilterFrom(int);

  • void setPacketRangeFilterTo(int);

  • void activateFilter();
  • void setFilterParameters(char **str, int number);

  • void activatePrintBasicInfoToConsol();

  • // this param enable to show basic info from program to screen
  • void disablePrintBasicInfoToConsol();

  • void disablePrintError();

  • void enablePrintError();

  • void readFile(char *str,char *str2);

  • // read file and start analizy it
  • void disableForceFormatType(char *);

  • // set all parametr and start analiz all file....
  • void setAndEnableForcedProtocol(char *, char *);

  • bool testMemmoryBlock();

  • when activated TracesPlay will run some mommory block test, that check if size of the structures are preserved
  • void decodeOneFrame(char *ptrToBuffor,int bufforSize, int protocolId);

  • void setLibraryNormalPrintClass(VirtualNormalPrint *);

  • void setLibraryNormalPrintClassWithOutNewLine(VirtualNormalPrintWithOutNewLine *);

  • void setLibraryWarningPrintClass(VirtualWarningPrint *);

  • void setLibraryWarningPrintClassWithOutNewLine(VirtualWarningPrintWithOutNewLine *);

  • void setLibraryErrorPrintClass(VirtualErrorPrint *);

  • void setLibraryFattalErrorPrintClass(VirtualFatalErrorPrint *);