MarkdownDiffOutputGenerator.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/string.h>
5 #include <cstdint>
6 
7 #include "Aspose.PDF.Cpp/Comparison/OutputGenerator/IStringOutputGenerator.h"
8 #include "Aspose.PDF.Cpp/Comparison/OutputGenerator/IFileOutputGenerator.h"
9 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
10 
11 namespace Aspose
12 {
13 namespace Pdf
14 {
15 namespace Comparison
16 {
17 namespace Diff
18 {
19 class DiffOperation;
20 } // namespace Diff
21 } // namespace Comparison
22 } // namespace Pdf
23 } // namespace Aspose
24 namespace System
25 {
26 namespace Collections
27 {
28 namespace Generic
29 {
30 template <typename> class List;
31 } // namespace Generic
32 } // namespace Collections
33 namespace Text
34 {
35 namespace RegularExpressions
36 {
37 class Regex;
38 } // namespace RegularExpressions
39 } // namespace Text
40 } // namespace System
41 
42 namespace Aspose {
43 
44 namespace Pdf {
45 
46 namespace Comparison {
47 
48 namespace OutputGenerator {
49 
58 {
62 
63  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
64  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
65 
66 public:
67 
71  ASPOSE_PDF_SHARED_API MarkdownDiffOutputGenerator();
72 
84  ASPOSE_PDF_SHARED_API void GenerateOutput(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Pdf::Comparison::Diff::DiffOperation>>> diffrences, System::String targetFilePath) override;
97 
98 private:
99 
101  System::String _addDiffMdStartSymbols;
102  System::String _addDiffMdEndSymbols;
103  System::String _removeDiffMdStartSymbols;
104  System::String _removeDiffMdEndSymbols;
107 
109  int32_t CountInitialSpaces(System::String s);
110  int32_t CountTrailingSpaces(System::String s);
111 
112 };
113 
114 } // namespace OutputGenerator
115 } // namespace Comparison
116 } // namespace Pdf
117 } // namespace Aspose
118 
119 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
Represents a class for generating markdown representation of texts differences. Because of the markdo...
Definition: MarkdownDiffOutputGenerator.h:57
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Definition: Artifact.h:71
Represents an interface for generating output to a file of differences between texts.
Definition: IFileOutputGenerator.h:44
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: SideBySidePdfComparer.h:24
Represents a text type.
Definition: AFRelationship.h:4
Represents an interface for generating output to a string of differences between texts.
Definition: IStringOutputGenerator.h:44
List forward declaration.
Definition: Artifact.h:78
Whole PDF file will be submitted.