Marsyas  0.5.0-beta1
Data Structures | Namespaces | Defines | Enumerations | Functions
/Users/jleben/code/marsyas/src/marsyas/expr/ExCommon.h File Reference

Common information for Ex - the expression compiler. More...

#include <marsyas/common_header.h>
#include <string>
#include <iostream>
#include <sstream>

Go to the source code of this file.

Data Structures

class  ExRefCount
 convenient parent class for reference counted objects. More...

Namespaces

namespace  Marsyas

Defines

#define ExT_mrs_bool   2
#define ExT_mrs_natural   4
#define ExT_mrs_real   8
#define ExT_mrs_scheduler   64
#define ExT_mrs_string   16
#define ExT_mrs_timer   32
#define ExT_mrs_unit   1

Enumerations

enum  {
  NONE = 0, T_CONST, T_LIB, T_FUN,
  T_VAR, T_LIST, T_REAL, T_NATURAL,
  T_STR, T_BOOL, T_NAME, T_CNAME,
  T_COND, OP_BNEG, OP_MNEG, OP_ADD,
  OP_SUB, OP_MUL, OP_DIV, OP_MOD,
  OP_AND, OP_NE, OP_OR, OP_EQ,
  OP_GT, OP_LT, OP_GE, OP_LE,
  OP_LINK, OP_ASGN, OP_SETCTRL, OP_GETCTRL,
  OP_CONV
}

Functions

std::string btos (bool b)
 convert a boolean to a string
std::string dtos (double d)
 convert a double to a string
std::string dtos (float d)
 convert a float to a string
unsigned int ex_string_to_typeid (std::string tp)
 convert a marsyas type name to Ex type number
std::string ex_typeid_to_string (unsigned int tp)
 convert an ex type id to a marsyas type string
std::string ltos (long l)
 convert a long to a string
long stol (std::string n)
 convert a string to a long (integer)

Detailed Description

Common information for Ex - the expression compiler.

Author:
Neil Burroughs inb@cs.uvic.ca
Version:
1.0
Date:
Jan 04, 2007

Definition in file ExCommon.h.


Define Documentation

#define ExT_mrs_bool   2

Definition at line 77 of file ExCommon.h.

#define ExT_mrs_natural   4

Definition at line 78 of file ExCommon.h.

#define ExT_mrs_real   8

Definition at line 79 of file ExCommon.h.

#define ExT_mrs_scheduler   64

Definition at line 82 of file ExCommon.h.

#define ExT_mrs_string   16

Definition at line 80 of file ExCommon.h.

#define ExT_mrs_timer   32

Definition at line 81 of file ExCommon.h.

#define ExT_mrs_unit   1

Definition at line 76 of file ExCommon.h.