diff options
Diffstat (limited to 'moses/src/Input.h')
-rw-r--r-- | moses/src/Input.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/moses/src/Input.h b/moses/src/Input.h deleted file mode 100644 index c152ba4b2..000000000 --- a/moses/src/Input.h +++ /dev/null @@ -1,52 +0,0 @@ -// $Id$ - -#ifndef INPUT_H_ -#define INPUT_H_ -#include <string> -#include "TypeDef.h" -#include "Phrase.h" -#include "TargetPhraseCollection.h" - -class WordsRange; -class Factor; -class PhraseDictionaryBase; -class TranslationOptionCollection; - -// base class for sentences and confusion networks -class InputType -{ -protected: - long m_translationId; - public: - - InputType(long translationId=0); - virtual ~InputType(); - - // for db stuff - long GetTranslationId() - { - return m_translationId; - } - void SetTranslationId(long translationId) - { // for db stuff; - m_translationId = translationId; - } - virtual size_t GetSize() const=0; - - virtual int Read(std::istream& in,const std::vector<FactorType>& factorOrder, FactorCollection &factorCollection) =0; - - virtual void Print(std::ostream&) const=0; - - virtual TargetPhraseCollection const* CreateTargetPhraseCollection(PhraseDictionaryBase const& d,const WordsRange& r) const=0; - virtual TranslationOptionCollection* CreateTranslationOptionCollection() const=0; - - virtual Phrase GetSubString(const WordsRange&) const =0; - virtual std::string GetStringRep(const WordsRange&) const=0; - virtual const FactorArray& GetFactorArray(size_t pos) const=0; - - TO_STRING; - -}; - -std::ostream& operator<<(std::ostream&,InputType const&); -#endif |