// ik-9/15/2011
// Railroad crossing - train sensor on the track.
// Part of the solution to the problem described by
// http://www.c-jump.com/CIS62/Handout/RRxing.jpg

// TODO:
// *** NOTE: no header guards are present in this file!

class Sensor {
public:
    // member variables
    int m_location;

    // class operations
    bool is_blocked( int train_location )
    {
        if ( train_location == m_location ) {
            return true;
        }
        return false;
    }
};