/* @file CurrentStation.java
*
* @author marco corvi
* @date nov 2011
*
* @brief TopoDroid current station
* --------------------------------------------------------
* Copyright This sowftare is distributed under GPL-3.0 or later
* See the file COPYING.
* --------------------------------------------------------
*/
package com.topodroid.DistoX;
class CurrentStation
{
public String mName;
public String mComment;
public int mFlag;
static final int STATION_NONE = 0;
static final int STATION_FIXED = 1;
static final int STATION_PAINTED = 2;
static final String[] flag_str = { " ", " [F] ", " [P] " };
CurrentStation( String name, String comment, long flag )
{
mName = name;
mComment = (comment == null)? "" : comment;
mFlag = (int)flag;
}
public String toString()
{
return mName + flag_str[mFlag] + mComment;
}
}