WSF
DocumentationInterpretter.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef DOCUMENTATIONINTERPRETTER_HPP
13#define DOCUMENTATIONINTERPRETTER_HPP
14
15#include <string>
16class QString;
17class QUrl;
18class UtTextDocumentRange;
19
20namespace wizard
21{
23class ParseResults;
24class Project;
25
27// Regular documentation page: ide://documentation/docs/simulation_control_commands.html
28// Single-command page: ide://documentation/docs/simulation_control_commands.html?doc_section=end_time
29// Search: ide://documentation/find_documentation?source=E:\data\demos\aea_demo\strike.txt&offset1=296&offset2=296
31{
32public:
33 virtual ~DocumentationInterpretter() = default;
34
35 static bool FindDocumentation(GrammarDocumentation& aDocumentationData,
36 ParseResults& aResults,
37 const UtTextDocumentRange& aRange,
38 std::string& aPageName,
39 std::string& aSection);
40
41 static QString LookupDocumentationUrl(const QUrl& aUrl, bool& aReturnsURL, QString& aDocumentName);
42
43private:
44 static Project* GetProject();
45};
46} // namespace wizard
47
48#endif
Provides documentation using the URL formats:
Definition DocumentationInterpretter.hpp:31
static QString LookupDocumentationUrl(const QUrl &aUrl, bool &aReturnsURL, QString &aDocumentName)
Definition DocumentationInterpretter.cpp:27
virtual ~DocumentationInterpretter()=default
static bool FindDocumentation(GrammarDocumentation &aDocumentationData, ParseResults &aResults, const UtTextDocumentRange &aRange, std::string &aPageName, std::string &aSection)
Definition DocumentationInterpretter.cpp:127
Definition GrammarDocumentation.hpp:28
Provides access to the results of parsing the WSF inputs.
Definition ParseResults.hpp:147
A WSF 'project'. Manages WSF sources files in a WSF project.
Definition Project.hpp:66
Definition Runner.hpp:22
Copyrights Multiple, All Rights Reserved