- Timestamp:
- 01/22/10 19:44:34 (2 years ago)
- Files:
-
- 1 modified
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;
Powered by
Expect where otherwise noted, content on this site is licensed under a