Planeshift
SlotNameHash Class Reference

A hash map class that stores a name->ID of sockets. More...

#include <slots.h>

Public Member Functions

void AddSecondaryName (const char *primary, const char *secondary)
 
int GetID (const csString &name)
 Get the enum ID from a string name. More...
 
const char * GetName (int id)
 Get the name from an enum. More...
 
const char * GetSecondaryName (int id)
 Get the secondary, non exact name. More...
 
 SlotNameHash ()
 

Detailed Description

A hash map class that stores a name->ID of sockets.

This way we can easily work with numbers and then convert to string if we need to. This is shared class across both the client and server since both may need this.

Definition at line 91 of file slots.h.

Constructor & Destructor Documentation

SlotNameHash::SlotNameHash ( )

Member Function Documentation

void SlotNameHash::AddSecondaryName ( const char *  primary,
const char *  secondary 
)
int SlotNameHash::GetID ( const csString &  name)

Get the enum ID from a string name.

const char* SlotNameHash::GetName ( int  id)

Get the name from an enum.

const char* SlotNameHash::GetSecondaryName ( int  id)

Get the secondary, non exact name.


The documentation for this class was generated from the following file: