Changeset 59 in projects for punch-card-project/trunk/punch-card-editor/src/text/codec.h
- Timestamp:
- Jan 22, 2010, 7:44:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
punch-card-project/trunk/punch-card-editor/src/text/codec.h
r58 r59 23 23 **/ 24 24 class Codec { 25 const QString& name; 26 25 27 public: 26 28 // soll const sein, weil Codec unveraenderbar *immer* das gleiche … … 29 31 const char illegal; 30 32 /// @param illegal_character Zeichen fuer nicht existente Zahlen 31 Codec(char illegal_character = '~' ) : illegal(illegal_character) {}32 Codec(const Codec& other) : illegal(other.illegal) {}33 Codec(char illegal_character = '~', const QString& name = QString()) : illegal(illegal_character), name(name) {} 34 Codec(const Codec& other) : illegal(other.illegal), name(other.name) {} 33 35 virtual ~Codec() {} 36 37 virtual const QString& getName() const { return name; } 38 34 39 virtual char toAscii(const Column* col) const = 0; 35 40 virtual QString toAscii(const Card* target_card) const; … … 62 67 63 68 public: 64 CharArrayCodec(const int* table, char illegal = '~' );// : Codec(illegal), table(table) {}69 CharArrayCodec(const int* table, char illegal = '~', const QString& name = QString()); 65 70 CharArrayCodec(const CharArrayCodec& other) : Codec(other) { 66 71 d = other.d;
Note: See TracChangeset
for help on using the changeset viewer.