WSF
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
23class WsfParseNode;
24class UtTextDocument;
25
26class WSF_PARSER_EXPORT WsfParseFormat
27{
28public:
30 void Format(const std::set<WsfParseNode*>& aFormatNodes);
31 const std::set<UtTextDocument*>& GetModifiedDocuments() { return mModifiedDocuments; }
32
33private:
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
void Format(const std::set< WsfParseNode * > &aFormatNodes)
Definition WsfParseFormat.cpp:43
WsfParseFormat()
Definition WsfParseFormat.cpp:38
const std::set< UtTextDocument * > & GetModifiedDocuments()
Definition WsfParseFormat.hpp:31
Definition WsfParseNode.hpp:61
Copyrights Multiple, All Rights Reserved