Teamcenter C++ API Reference  2312
Sanitizer.hxx
Go to the documentation of this file.
1 /*==================================================================================================
2 
3  Copyright (c) 2020 Siemens Product Lifecycle Management Software Inc.
4 
5 ====================================================================================================
6 Filename: Sanitizer.hxx
7 
8 File description:
9 ==================================================================================================*/
10 #ifndef TEAMCENTER_SANITIZER_HXX
11 #define TEAMCENTER_SANITIZER_HXX
12 
13 #include <string>
14 #include <vector>
15 
16 #include <sanitizer/libsanitizer_exports.h>
17 
18 namespace Teamcenter
19 {
20  class Sanitizer;
21 }
22 
23 class SANITIZER_API Teamcenter::Sanitizer
24 {
25  public:
26 
37  static std::string sanitizeCommand(const std::string& theInput);
38 
39 
52  static std::string sanitizePath(const std::string& theInput);
53 
69  static std::string sanitizePathWithWhiteList(std::vector< std::string >& whiteList, std::vector< std::string >& validExtensions, const std::string& theInput, bool ignoreCase = true);
70 
71  private:
72  static std::string m_delimiters;
73  static const int m_numInvalidStrings = 20;
74  static std::string m_invalidStringList2[];
75 };
76 
77 #include <sanitizer/libsanitizer_undef.h>
78 #endif
79 
80 
81