#include <iostream>
Go to the source code of this file.
Enumerations | |
enum | Direction { AUTO, LEFT, RIGHT, UP, DOWN } |
Functions | |
std::ostream & | operator<< (std::ostream &o, const Direction &dir) |
enum Direction |
std::ostream& operator<< | ( | std::ostream & | o, | |
const Direction & | dir | |||
) |
Definition at line 19 of file direction.cpp.
References AUTO, DOWN, LEFT, RIGHT, and UP.
00020 { 00021 switch (dir) 00022 { 00023 case AUTO: 00024 o << "auto"; 00025 break; 00026 case LEFT: 00027 o << "left"; 00028 break; 00029 case RIGHT: 00030 o << "right"; 00031 break; 00032 case UP: 00033 o << "up"; 00034 break; 00035 case DOWN: 00036 o << "down"; 00037 break; 00038 } 00039 00040 return o; 00041 }