Free Electron
CatalogWriterYaml.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 __yaml_CatalogWriterYaml_h__
8 #define __yaml_CatalogWriterYaml_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief save catalog to yaml file
17 
18  @ingroup yaml
19 *//***************************************************************************/
20 class FE_DL_EXPORT CatalogWriterYaml:
21  virtual public CatalogWriterI
22 {
23  public:
24 
25 virtual BWORD save(String a_filename,sp<Catalog> a_spCatalog);
26 
27  private:
28 
29  void emitFloat(YAML::Emitter& a_rEmitter,float a_float);
30  void emitDouble(YAML::Emitter& a_rEmitter,double a_double);
31 
32  void emit(YAML::Emitter& a_rEmitter,sp<Catalog> a_spCatalog,
33  String a_key,String a_property);
34 
35  sp<YamlNode> m_spYamlRoot;
36 };
37 
38 } /* namespace ext */
39 } /* namespace fe */
40 
41 #endif /* __yaml_CatalogWriterYaml_h__ */
kernel
Definition: namespace.dox:3
Automatically reference-counted string container.
Definition: String.h:128
save catalog to yaml file
Definition: CatalogWriterYaml.h:20
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53