tried enum support - doesn't yet work due to internal bro interface problems...

This commit is contained in:
Bernhard Amann 2011-11-14 17:18:28 -08:00
parent c8a713da3d
commit 1a642f3568
3 changed files with 8 additions and 1 deletions

View file

@ -128,7 +128,6 @@ bool InputReaderAscii::GetLine(string& str) {
// read the entire file and send appropriate thingies back to InputMgr
bool InputReaderAscii::DoUpdate() {
// dirty, fix me. (well, apparently after trying seeking, etc - this is not that bad)
if ( file && file->is_open() ) {
@ -198,6 +197,7 @@ bool InputReaderAscii::DoUpdate() {
//bzero(val, sizeof(LogVal));
switch ( currMapping.type ) {
case TYPE_ENUM:
case TYPE_STRING:
val->val.string_val = new string(s);
break;