Free Electron
StringFilterJson.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __json_StringFilterJson_h__
8 #define __json_StringFilterJson_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 //* TODO StringFilterI interface
16 
17 /**************************************************************************//**
18  @brief JSON String Check
19 
20  @ingroup json
21 *//***************************************************************************/
22 class FE_DL_EXPORT StringFilterJson:
23  virtual public StringFilterI
24 {
25  public:
26  StringFilterJson(void) {}
27 virtual ~StringFilterJson(void) {}
28 
29 virtual BWORD load(String a_filename);
30 
31 virtual void configure(String a_config)
32  { m_config=a_config; }
33 
34 virtual String configuration(void)
35  { return m_config; }
36 
37 virtual String filter(String a_string);
38 
39  //* JSON specific
40  void setJsonRoot(sp<JsonValue> a_spJsonRoot)
41  { m_spJsonRoot=a_spJsonRoot; }
42 
43  sp<JsonValue> jsonRoot(void) { return m_spJsonRoot; }
44 
45  private:
46 
47  sp<JsonValue> m_spJsonRoot;
48 
49  String m_config;
50 };
51 
52 } /* namespace ext */
53 } /* namespace fe */
54 
55 #endif /* __json_StringFilterJson_h__ */
kernel
Definition: namespace.dox:3
JSON String Check.
Definition: StringFilterJson.h:22
Automatically reference-counted string container.
Definition: String.h:128
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
String check or modification.
Definition: StringFilterI.h:27