Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  trans.h   Sprache: C

 
// -*- C++ -*-
#ifndef _Trans_h_
#define _Trans_h_

#ifdef __GNUG__
#pragma interface
#endif

#include "tex-accent.h"
#include "LString.h"
#include "trans_decl.h"

class LyXLex;

class TransManager;

/**
  TransInterface: the interface that every translation class
  should obey too.
  Visitor pattern applied here
  */

class TransInterface {
public:
 ///
 virtual LString process(char,TransManager&)=0;
 ///
 virtual bool isAccentDefined(tex_accent,KmodInfo&)=0;
};

/**
  DefaultTrans: the default translation class. Hols info
  on tex-accents. Monostate
  */

class DefaultTrans: public TransInterface {
private:
 ///
 static bool init_;
public:
 ///
 DefaultTrans();
 ///
 virtual LString process(char,TransManager&);
};


/**
  Trans: holds a .kmap file 
  */

class Trans:public TransInterface {
public:
 ///
 Trans();
 ///
 virtual ~Trans();

 ///
 int Load(LString const &language);
 ///
 bool IsDefined();
 ///
 const LString& GetName();
 ///
 LString process(char,TransManager&);
 ///
 bool isAccentDefined(tex_accent,KmodInfo&);
    
private:
 ///
 typedef KmodInfo kmod_list_decl;
 ///
 typedef KmodException keyexc;
    
 ///
 void AddDeadkey(tex_accent, const LString&, const LString&);
 ///
 void FreeKeymap();
 ///
 int Load(LyXLex &);
 ///
 inline char* Match(char c);
 ///
 void InsertException(keyexc &exclist, char c,
        const LString& data, bool = false,
        tex_accent = TEX_NOACCENT);
 ///
 void FreeException(keyexc& exclist);

 ///
 LString name_;
 ///
 char *keymap_[256];
 ///
 kmod_list_decl *kmod_list_[TEX_MAX_ACCENT+1];

};


char* Trans::Match(char c)
{
 return keymap_[(unsigned char)c];
}

#endif 

Messung V0.5
C=87 H=97 G=91

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge