Source-highlight Library
languageinfer.h
1 //
2 // C++ Interface: languageinfer
3 //
4 // Description:
5 //
6 //
7 // Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2006
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12 #ifndef LANGUAGEINFER_H
13 #define LANGUAGEINFER_H
14 
15 #include <string>
16 #include <iostream>
17 
18 namespace srchilite {
19 
31 public:
32  LanguageInfer();
33 
34  ~LanguageInfer();
35 
41  const std::string infer(const std::string &filename);
42 
48  const std::string infer(std::istream &stream = std::cin);
49 };
50 
51 }
52 
53 #endif
Tries to infer the language by inspecting the input file.
Definition: languageinfer.h:30
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
const std::string infer(const std::string &filename)
Tries to infer the language of the specified inputfile.
Definition: languageinfer.cpp:34