Go to the documentation of this file.
34 #include <boost/format.hpp>
78 return wxDocument::OnNewDocument();
93 string fileExtension =
96 if (fileExtension == configExtension) {
119 std::fstream cfgFile(filename.c_str());
121 if (cfgFile.fail()) {
134 message.Append(_T(
"\n\n"));
180 message.Append(_T(
"\n"));
182 ErrorDialog errorDialog(GetDocumentWindow(), message);
183 errorDialog.ShowModal();
214 errorDialog.ShowModal();
static wxString toWxString(const std::string &source)
Model * model_
Machine Object Model which the document represents.
virtual bool OnNewDocument()
std::string architectureName()
virtual boost::format text(int textId)
static std::string fileOfPath(const std::string pathName)
#define assert(condition)
void setPCFDirectory(const std::string &path)
void addObserver(ModelObserver *observer)
static std::string fileExtension(const std::string &fileName)
void setDestinationFile(const std::string &fileName)
static std::string directoryOfPath(const std::string fileName)
std::string errorString(int index)
bool openADF(const std::string &filename)
bool openCFG(const std::string &filename)
std::string errorMessage() const
static ProDeTextGenerator * instance()
virtual bool OnSaveDocument(const wxString &filename)
void writeMachine(const TTAMachine::Machine &machine)
static const std::string PROCESSOR_CONFIG_FILE_EXTENSION
Processor configuration file extension.
@ MSG_ERROR_LOADING_FILE
Error: File loading failed.
static std::string toString(const wxString &source)
virtual bool OnOpenDocument(const wxString &filename)
TTAMachine::Machine * getMachine()