Logo Search packages:      
Sourcecode: jlint version File versions  Download package

message_node.hh

#ifndef MESSAGE_NODE_HH
#define MESSAGE_NODE_HH
#include <cstring>
//#include "types.hh" // included by functions.hh
#include "functions.hh"

class message_node {
  static message_node* hash_table[];
public:
  message_node* next;
  char*         text;

  static bool find(char* msg);
  static void add_to_hash(char* msg);

  message_node(char* msg) { 
    text = strdup(msg);
    next = NULL;
  }
  ~message_node() { delete[] text; }
};

#endif

Generated by  Doxygen 1.6.0   Back to index