Subversion Repositories Programming Utils

Rev

Rev 88 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef TRAINRECORD_H
#define TRAINRECORD_H

#include <string>
#include <stdint.h>

class TrainRecord
{
public:
    TrainRecord( int key,
                 const char* reporting_mark,
                 uint32_t road_number,
                 const char* stock_type,
                 uint16_t costi,
                 const char* notes );

    std::string getReportingMark();
    void setReportingMark( std::string );

    uint32_t getRoadNumber();
    void setRoadNumber( uint32_t );

    std::string getStockType();
    void setStockType( std::string );

    uint16_t getCost();
    void setCost( uint16_t );

    std::string getNotes();
    void setNotes( std::string );

    int getKey();

private:
    std::string reporting;
    uint32_t road;
    std::string stock;
    uint16_t cost;
    std::string notes;
    int key;
};

#endif // TRAINRECORD_H