/* LICENSE:
  =========================================================================
    CMPack'04 Source Code Release for OPEN-R SDK 1.1.5-r2 for ERS7
    Copyright (C) 2004 Multirobot Lab [Project Head: Manuela Veloso]
    School of Computer Science, Carnegie Mellon University
    All rights reserved.
  ========================================================================= */

#ifndef INCLUDED_LogExtractor_h
#define INCLUDED_LogExtractor_h

#include <vector>

#include "FieldExtractor.h"

/*------------------------------------------------------------------
CLASS
  LogExtractor

DESCRIPTION
  Extracts a field from a data packet.
------------------------------------------------------------------*/
class LogExtractor {
public:
  LogExtractor();

  bool configure(const char *filename);
  bool configure(FILE *file);

  void extract(const char *in_filename, const char *out_filename);
  void extract(FILE *in_file, FILE *out_file);

private:
  std::vector<FieldExtractor *> extractors;
};

#endif
