Show
Ignore:
Timestamp:
01/22/10 19:44:34 (2 years ago)
Author:
sven-win
Message:

Umfangreiche Weiterentwicklung (letzte Entwicklung am Netbook). Driver fuer M200 erstmals testweise implementiert; funktioniert(e mit Netbook).

-- Sven @ netboo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • punch-card-project/trunk/punch-card-editor/src/text/codec.h

    r58 r59  
    2323 **/ 
    2424class Codec { 
     25        const QString& name; 
     26 
    2527public: 
    2628        // soll const sein, weil Codec unveraenderbar *immer* das gleiche 
     
    2931        const char illegal; 
    3032        /// @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) {} 
    3335        virtual ~Codec() {} 
     36 
     37        virtual const QString& getName() const { return name; } 
     38 
    3439        virtual char toAscii(const Column* col) const = 0; 
    3540        virtual QString toAscii(const Card* target_card) const; 
     
    6267 
    6368public: 
    64         CharArrayCodec(const int* table, char illegal = '~');// : Codec(illegal), table(table) {} 
     69        CharArrayCodec(const int* table, char illegal = '~', const QString& name = QString()); 
    6570        CharArrayCodec(const CharArrayCodec& other) : Codec(other) { 
    6671                d = other.d; 
© 2008 - 2010 Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License