enigma-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Enigma-cvs] enigma/src enigma.hh, 1.17.2.3, 1.17.2.4 enigma.cc, 1.26.2.


From: Daniel Heck <address@hidden>
Subject: [Enigma-cvs] enigma/src enigma.hh, 1.17.2.3, 1.17.2.4 enigma.cc, 1.26.2.2, 1.26.2.3
Date: Mon, 06 Oct 2003 19:16:20 +0000

Update of /cvsroot/enigma/enigma/src
In directory subversions:/tmp/cvs-serv20658/src

Modified Files:
      Tag: enigma0_80_rc
        enigma.hh enigma.cc 
Log Message:
* New: to_direction()


Index: enigma.hh
===================================================================
RCS file: /cvsroot/enigma/enigma/src/enigma.hh,v
retrieving revision 1.17.2.3
retrieving revision 1.17.2.4
diff -C2 -d -r1.17.2.3 -r1.17.2.4
*** enigma.hh   30 Sep 2003 14:03:54 -0000      1.17.2.3
--- enigma.hh   6 Oct 2003 19:16:17 -0000       1.17.2.4
***************
*** 149,152 ****
--- 149,153 ----
      double      to_double(const Value &v);
      const char *to_string(const Value &v);
+     Direction   to_direction (const Value &v);
  
  /*

Index: enigma.cc
===================================================================
RCS file: /cvsroot/enigma/enigma/src/enigma.cc,v
retrieving revision 1.26.2.2
retrieving revision 1.26.2.3
diff -C2 -d -r1.26.2.2 -r1.26.2.3
*** enigma.cc   30 Sep 2003 14:03:54 -0000      1.26.2.2
--- enigma.cc   6 Oct 2003 19:16:17 -0000       1.26.2.3
***************
*** 285,288 ****
--- 285,294 ----
  }
  
+ Direction 
+ enigma::to_direction (const Value &v)
+ {
+     int val = Clamp(to_int(v), 0, 3);
+     return static_cast<Direction>(val);
+ }
  
  ostream& enigma::operator<<(ostream& os, const Value& val)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]