• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef CORE_FXCRT_XML_CFX_XMLINSTRUCTION_H_
8 #define CORE_FXCRT_XML_CFX_XMLINSTRUCTION_H_
9 
10 #include <memory>
11 #include <vector>
12 
13 #include "core/fxcrt/fx_string.h"
14 #include "core/fxcrt/xml/cfx_xmlattributenode.h"
15 
16 class CFX_XMLInstruction : public CFX_XMLAttributeNode {
17  public:
18   explicit CFX_XMLInstruction(const WideString& wsTarget);
19   ~CFX_XMLInstruction() override;
20 
21   // CFX_XMLNode
22   FX_XMLNODETYPE GetType() const override;
23   std::unique_ptr<CFX_XMLNode> Clone() override;
24 
GetTargetData()25   const std::vector<WideString>& GetTargetData() const { return m_TargetData; }
26   void AppendData(const WideString& wsData);
27   void RemoveData(int32_t index);
28 
29  private:
30   std::vector<WideString> m_TargetData;
31 };
32 
33 #endif  // CORE_FXCRT_XML_CFX_XMLINSTRUCTION_H_
34