0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Hypertable::ClusterDefinitionFile::TranslatorCode Class Reference

Translates a code block. More...

#include <TranslatorCode.h>

Inheritance diagram for Hypertable::ClusterDefinitionFile::TranslatorCode:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::ClusterDefinitionFile::TranslatorCode:
Collaboration graph
[legend]

Public Member Functions

 TranslatorCode (const string &fname, size_t lineno, const string &text)
 Constructor. More...
 
const string translate (TranslationContext &context) override
 Translates a code block. More...
 

Private Attributes

string m_fname
 Source file name containing code block. More...
 
string m_text
 Text of code block. More...
 

Detailed Description

Translates a code block.

Definition at line 43 of file TranslatorCode.h.

Constructor & Destructor Documentation

Hypertable::ClusterDefinitionFile::TranslatorCode::TranslatorCode ( const string &  fname,
size_t  lineno,
const string &  text 
)
inline

Constructor.

Parameters
fnameFilename of source file
linenoStarting offset within source file of code block text
textText of code block

Definition at line 49 of file TranslatorCode.h.

Member Function Documentation

const string TranslatorCode::translate ( TranslationContext context)
overridevirtual

Translates a code block.

This method does no translation and passes the code block text straight through untranslated.

Parameters
contextContext object containing symbol tables
Returns
Unmodified code block text

Implements Hypertable::ClusterDefinitionFile::Translator.

Definition at line 42 of file TranslatorCode.cc.

Member Data Documentation

string Hypertable::ClusterDefinitionFile::TranslatorCode::m_fname
private

Source file name containing code block.

Definition at line 61 of file TranslatorCode.h.

string Hypertable::ClusterDefinitionFile::TranslatorCode::m_text
private

Text of code block.

Definition at line 63 of file TranslatorCode.h.


The documentation for this class was generated from the following files: