Subversion Repositories Programming Utils

Rev

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

Rev Author Line No. Line
87 rm5248 1
#ifndef TRAINRECORD_H
2
#define TRAINRECORD_H
3
 
4
#include <string>
5
#include <stdint.h>
6
 
7
class TrainRecord
8
{
9
public:
88 rm5248 10
    TrainRecord( int key,
11
                 const char* reporting_mark,
91 rm5248 12
                 uint32_t road_number,
87 rm5248 13
                 const char* stock_type,
14
                 uint16_t costi,
15
                 const char* notes );
16
 
17
    std::string getReportingMark();
18
    void setReportingMark( std::string );
19
 
91 rm5248 20
    uint32_t getRoadNumber();
21
    void setRoadNumber( uint32_t );
87 rm5248 22
 
23
    std::string getStockType();
24
    void setStockType( std::string );
25
 
26
    uint16_t getCost();
27
    void setCost( uint16_t );
28
 
29
    std::string getNotes();
30
    void setNotes( std::string );
31
 
88 rm5248 32
    int getKey();
33
 
87 rm5248 34
private:
35
    std::string reporting;
91 rm5248 36
    uint32_t road;
87 rm5248 37
    std::string stock;
38
    uint16_t cost;
39
    std::string notes;
88 rm5248 40
    int key;
87 rm5248 41
};
42
 
43
#endif // TRAINRECORD_H