tags.h File Reference

#include <cstdio>
#include <stdint.h>
#include "tag-version.h"
#include "package.h"

Include dependency graph for tags.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  enum_info
struct  enum_info::enum_val
struct  enum_write_state
struct  enum_read_state
class  writer
class  reader
class  short_read_exception

Enumerations

enum  tag_type {
  TAG_NO_TAG = 0, TAG_CHR = 1, TAG_YOU, TAG_LEVEL,
  TAG_GHOST, NUM_TAGS, TAG_SKIP
}

Functions

void marshallByte (writer &, int8_t)
void marshallShort (writer &, int16_t)
void marshallInt (writer &, int32_t)
void marshallFloat (writer &, float)
void marshallUByte (writer &, uint8_t)
void marshallBoolean (writer &, bool)
void marshallString (writer &, const std::string &, int maxSize=0)
void marshallString4 (writer &, const std::string &)
void marshallCoord (writer &, const coord_def &)
void marshallItem (writer &, const item_def &)
void marshallMonster (writer &, const monster &)
void marshallMonsterInfo (writer &, const monster_info &)
void marshallMapCell (writer &, const map_cell &)
void marshallEnumVal (writer &, const enum_info *, int)
template<typename enm>
void marshallEnum (writer &wr, enm value)
void marshallUnsigned (writer &th, uint64_t v)
void marshallSigned (writer &th, int64_t v)
int8_t unmarshallByte (reader &)
int16_t unmarshallShort (reader &)
int32_t unmarshallInt (reader &)
float unmarshallFloat (reader &)
uint8_t unmarshallUByte (reader &)
bool unmarshallBoolean (reader &)
std::string unmarshallString (reader &, int maxSize=1000)
void unmarshallString4 (reader &, std::string &)
coord_def unmarshallCoord (reader &)
void unmarshallItem (reader &, item_def &item)
void unmarshallMonster (reader &, monster &item)
void unmarshallMonsterInfo (reader &, monster_info &mi)
void unmarshallMapCell (reader &, map_cell &cell)
int unmarshallEnumVal (reader &, const enum_info *)
template<typename enm>
enm unmarshallEnum (writer &wr)
uint64_t unmarshallUnsigned (reader &th)
int64_t unmarshallSigned (reader &th)
void tag_read (reader &inf, tag_type tag_id)
void tag_write (tag_type tagID, writer &outf)
std::string make_date_string (time_t in_date)


Enumeration Type Documentation

enum tag_type

Enumerator:
TAG_NO_TAG 
TAG_CHR 
TAG_YOU 
TAG_LEVEL 
TAG_GHOST 
NUM_TAGS 
TAG_SKIP 


Function Documentation

std::string make_date_string ( time_t  in_date  ) 

Here is the call graph for this function:

void marshallBoolean ( writer ,
bool   
)

Here is the call graph for this function:

void marshallByte ( writer ,
int8_t   
)

Here is the call graph for this function:

void marshallCoord ( writer ,
const coord_def  
)

Here is the call graph for this function:

template<typename enm>
void marshallEnum ( writer wr,
enm  value 
) [inline]

Here is the call graph for this function:

void marshallEnumVal ( writer ,
const enum_info ,
int   
)

Here is the call graph for this function:

void marshallFloat ( writer ,
float   
)

Here is the call graph for this function:

void marshallInt ( writer ,
int32_t   
)

Here is the call graph for this function:

void marshallItem ( writer ,
const item_def  
)

Here is the call graph for this function:

void marshallMapCell ( writer ,
const map_cell  
)

Here is the call graph for this function:

void marshallMonster ( writer ,
const monster  
)

Here is the call graph for this function:

void marshallMonsterInfo ( writer ,
const monster_info  
)

Here is the call graph for this function:

void marshallShort ( writer ,
int16_t   
)

void marshallSigned ( writer th,
int64_t  v 
)

Here is the call graph for this function:

void marshallString ( writer ,
const std::string ,
int  maxSize = 0 
)

Here is the call graph for this function:

void marshallString4 ( writer ,
const std::string  
)

Here is the call graph for this function:

void marshallUByte ( writer ,
uint8_t   
)

Here is the call graph for this function:

void marshallUnsigned ( writer th,
uint64_t  v 
)

Here is the call graph for this function:

void tag_read ( reader inf,
tag_type  tag_id 
)

Here is the call graph for this function:

void tag_write ( tag_type  tagID,
writer outf 
)

Here is the call graph for this function:

bool unmarshallBoolean ( reader  ) 

Here is the call graph for this function:

int8_t unmarshallByte ( reader  ) 

Here is the call graph for this function:

coord_def unmarshallCoord ( reader  ) 

Here is the call graph for this function:

template<typename enm>
enm unmarshallEnum ( writer wr  )  [inline]

Here is the call graph for this function:

int unmarshallEnumVal ( reader ,
const enum_info  
)

Here is the call graph for this function:

float unmarshallFloat ( reader  ) 

Here is the call graph for this function:

int32_t unmarshallInt ( reader  ) 

Here is the call graph for this function:

void unmarshallItem ( reader ,
item_def item 
)

Here is the call graph for this function:

void unmarshallMapCell ( reader ,
map_cell cell 
)

Here is the call graph for this function:

void unmarshallMonster ( reader ,
monster item 
)

Here is the call graph for this function:

void unmarshallMonsterInfo ( reader ,
monster_info mi 
)

Here is the call graph for this function:

int16_t unmarshallShort ( reader  ) 

Here is the call graph for this function:

int64_t unmarshallSigned ( reader th  ) 

Here is the call graph for this function:

std::string unmarshallString ( reader ,
int  maxSize = 1000 
)

void unmarshallString4 ( reader ,
std::string  
)

Here is the call graph for this function:

uint8_t unmarshallUByte ( reader  ) 

Here is the call graph for this function:

uint64_t unmarshallUnsigned ( reader th  ) 

Here is the call graph for this function:


Generated on Thu Jan 13 13:27:43 2011 by  doxygen 1.5.6