WSF
src
core
wsf_parser
source
WsfParseFormat.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
// Updated by Infoscitex, a DCS Company.
13
// ****************************************************************************
14
15
#ifndef WSFPARSEFORMAT_HPP
16
#define WSFPARSEFORMAT_HPP
17
#include "wsf_parser_export.h"
18
19
#include <cstddef>
20
#include <map>
21
#include <set>
22
23
class
WsfParseNode
;
24
class
UtTextDocument;
25
26
class
WSF_PARSER_EXPORT
WsfParseFormat
27
{
28
public
:
29
WsfParseFormat
();
30
void
Format
(
const
std::set<WsfParseNode*>& aFormatNodes);
31
const
std::set<UtTextDocument*>&
GetModifiedDocuments
() {
return
mModifiedDocuments; }
32
33
private
:
34
bool
NodeFormatRequested(
WsfParseNode
* aNodePtr)
const
;
35
void
FormatBlockNodes(
WsfParseNode
* aRootNode);
36
size_t
& InsertedChars(UtTextDocument*);
37
int
mBlockIndent;
38
std::set<WsfParseNode*> mFormatNodes;
39
// Number of inserted chars for each file
40
// may be negative!
41
std::map<UtTextDocument*, size_t> mInsertedChars;
42
std::set<UtTextDocument*> mModifiedDocuments;
43
};
44
#endif
WsfParseFormat::Format
void Format(const std::set< WsfParseNode * > &aFormatNodes)
Definition
WsfParseFormat.cpp:43
WsfParseFormat::WsfParseFormat
WsfParseFormat()
Definition
WsfParseFormat.cpp:38
WsfParseFormat::GetModifiedDocuments
const std::set< UtTextDocument * > & GetModifiedDocuments()
Definition
WsfParseFormat.hpp:31
WsfParseNode
Definition
WsfParseNode.hpp:61
Copyrights Multiple, All Rights Reserved