Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Attr.cc File Reference

#include "config.h"
#include "Attr.h"
#include "Expr.h"
#include "Serializer.h"

Include dependency graph for Attr.cc:

Include dependency graph

Go to the source code of this file.

Functions

const char * attr_name (attr_tag t)
 IMPLEMENT_SERIAL (Attributes, SER_ATTRIBUTES)


Function Documentation

const char* attr_name attr_tag  t  ) 
 

Definition at line 28 of file Attr.cc.

References int, and NUM_ATTRS.

Referenced by Attr::AddTag().

00029         {
00030         static const char* attr_names[int(NUM_ATTRS)] = {
00031                 "&optional", "&default", "&redef",
00032                 "&rotate_interval", "&rotate_size",
00033                 "&add_func", "&delete_func", "&expire_func",
00034                 "&read_expire", "&write_expire", "&create_expire",
00035                 "&persistent", "&postprocessor", "&encrypt",
00036                 "&match",
00037         };
00038 
00039         return attr_names[int(t)];
00040         }

IMPLEMENT_SERIAL Attributes  ,
SER_ATTRIBUTES 
 


Generated on Wed Sep 14 02:57:04 2005 for bro_docs by doxygen 1.3.5