mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
Remove other using statements from headers
This commit is contained in:
parent
eb010290eb
commit
a525f9532e
22 changed files with 123 additions and 171 deletions
|
@ -13,8 +13,6 @@
|
|||
#include "ZeekArgs.h"
|
||||
#include "WeirdState.h"
|
||||
|
||||
using std::string;
|
||||
|
||||
class Connection;
|
||||
class RecordType;
|
||||
class RecordVal;
|
||||
|
@ -46,13 +44,13 @@ public:
|
|||
* @return the value of the "source" field from #val record or an empty
|
||||
* string if it's not initialized.
|
||||
*/
|
||||
string GetSource() const;
|
||||
std::string GetSource() const;
|
||||
|
||||
/**
|
||||
* Set the "source" field from #val record to \a source.
|
||||
* @param source the new value of the "source" field.
|
||||
*/
|
||||
void SetSource(const string& source);
|
||||
void SetSource(const std::string& source);
|
||||
|
||||
/**
|
||||
* @return value (seconds) of the "timeout_interval" field from #val record.
|
||||
|
@ -76,7 +74,7 @@ public:
|
|||
/**
|
||||
* @return value of the "id" field from #val record.
|
||||
*/
|
||||
string GetID() const { return id; }
|
||||
std::string GetID() const { return id; }
|
||||
|
||||
/**
|
||||
* @return value of "last_active" field in #val record;
|
||||
|
@ -212,7 +210,7 @@ public:
|
|||
* @return true if the mime type was set. False if it could not be set because
|
||||
* a mime type was already set or inferred.
|
||||
*/
|
||||
bool SetMime(const string& mime_type);
|
||||
bool SetMime(const std::string& mime_type);
|
||||
|
||||
/**
|
||||
* Whether to permit a weird to carry on through the full reporter/weird
|
||||
|
@ -236,7 +234,7 @@ protected:
|
|||
* of the connection to the responder. False indicates the other
|
||||
* direction.
|
||||
*/
|
||||
File(const string& file_id, const string& source_name, Connection* conn = 0,
|
||||
File(const std::string& file_id, const std::string& source_name, Connection* conn = 0,
|
||||
analyzer::Tag tag = analyzer::Tag::Error, bool is_orig = false);
|
||||
|
||||
/**
|
||||
|
@ -313,7 +311,7 @@ protected:
|
|||
*/
|
||||
void DeliverStream(const u_char* data, uint64_t len);
|
||||
|
||||
/**
|
||||
/**
|
||||
* Perform chunk-wise delivery for analyzers that need it.
|
||||
*/
|
||||
void DeliverChunk(const u_char* data, uint64_t len, uint64_t offset);
|
||||
|
@ -324,7 +322,7 @@ protected:
|
|||
* @param type the record type for which the field will be looked up.
|
||||
* @return the field offset in #val record corresponding to \a field_name.
|
||||
*/
|
||||
static int Idx(const string& field_name, const RecordType* type);
|
||||
static int Idx(const std::string& field_name, const RecordType* type);
|
||||
|
||||
/**
|
||||
* Initializes static member.
|
||||
|
@ -332,7 +330,7 @@ protected:
|
|||
static void StaticInit();
|
||||
|
||||
protected:
|
||||
string id; /**< A pretty hash that likely identifies file */
|
||||
std::string id; /**< A pretty hash that likely identifies file */
|
||||
RecordVal* val; /**< \c fa_file from script layer. */
|
||||
FileReassembler* file_reassembler; /**< A reassembler for the file if it's needed. */
|
||||
uint64_t stream_offset; /**< The offset of the file which has been forwarded. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue