mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Changing BroDocObj wrapper class to wrap ID instead of BroObj.
This commit is contained in:
parent
1c962cbb89
commit
1310f2387c
2 changed files with 17 additions and 25 deletions
|
@ -1,15 +1,12 @@
|
|||
#include <cstdio>
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include "Obj.h"
|
||||
#include "ID.h"
|
||||
#include "BroDocObj.h"
|
||||
|
||||
BroDocObj::BroDocObj(const BroObj* obj,
|
||||
std::list<std::string>*& reST,
|
||||
bool exported)
|
||||
BroDocObj::BroDocObj(const ID* id, std::list<std::string>*& reST)
|
||||
{
|
||||
broObj = obj;
|
||||
isExported = exported;
|
||||
broID = id;
|
||||
reST_doc_strings = reST;
|
||||
reST = 0;
|
||||
}
|
||||
|
@ -30,6 +27,6 @@ void BroDocObj::WriteReST(FILE* file) const
|
|||
}
|
||||
|
||||
ODesc desc;
|
||||
broObj->Describe(&desc);
|
||||
broID->DescribeExtended(&desc);
|
||||
fprintf(file, "%s\n", desc.Description());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue