Teach broxygen to generate protocol analyzer plugin reference.

This commit is contained in:
Jon Siwek 2013-06-07 13:21:18 -05:00
parent eee16e1177
commit e56a17102e
12 changed files with 397 additions and 217 deletions

View file

@ -1334,6 +1334,16 @@ EnumType::EnumType(const string& arg_name)
counter = 0;
}
EnumType::EnumType(EnumType* e)
: BroType(TYPE_ENUM)
{
name = e->name;
counter = e->counter;
for ( NameMap::iterator it = e->names.begin(); it != e->names.end(); ++it )
names[copy_string(it->first)] = it->second;
}
EnumType::~EnumType()
{
for ( NameMap::iterator iter = names.begin(); iter != names.end(); ++iter )