Reorganizing file analysis source code.

This commit is contained in:
Jon Siwek 2013-02-14 16:07:42 -06:00
parent f04d189d3f
commit f8af42cf9a
14 changed files with 675 additions and 603 deletions

View file

@ -0,0 +1,33 @@
#ifndef FILE_ANALYSIS_EXTRACT_H
#define FILE_ANALYSIS_EXTRACT_H
#include <string>
#include "Val.h"
#include "Info.h"
namespace file_analysis {
/**
* An action to simply extract files to disk.
*/
class Extract : Action {
public:
static Action* Instantiate(const RecordVal* args, Info* info);
~Extract();
virtual void DeliverChunk(const u_char* data, uint64 len, uint64 offset);
protected:
Extract(Info* arg_info, const string& arg_filename);
string filename;
int fd;
};
} // namespace file_analysis
#endif