1
//--------------------------------------------------------------------------------------
2
// This file is part of the Lomse library.
3
// Copyright (c) 2010 Lomse project
5
// Lomse is free software; you can redistribute it and/or modify it under the
6
// terms of the GNU General Public License as published by the Free Software Foundation,
7
// either version 3 of the License, or (at your option) any later version.
9
// Lomse is distributed in the hope that it will be useful, but WITHOUT ANY
10
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
// PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License along
14
// with Lomse; if not, see <http://www.gnu.org/licenses/>.
18
// For any comment, suggestion or feature request, please contact the manager of
19
// the project at cecilios@users.sourceforge.net
21
//-------------------------------------------------------------------------------------
23
#ifndef __LOMSE__LDP_EXPORTER_H__ //to avoid nested includes
24
#define __LOMSE__LDP_EXPORTER_H__
33
//forward declarations
39
// LdpExporter: Generates LDP source code for a basic model object
40
//----------------------------------------------------------------------------------
49
virtual ~LdpExporter();
52
void set_indent(int value) { m_nIndent = value; }
53
void set_add_id(bool value) { m_fAddId = value; }
55
//getters for settings
56
inline int get_indent() { return m_nIndent; }
57
inline bool get_add_id() { return m_fAddId; }
60
std::string get_source(ImoObj* pImo);
62
//static methods for ldp names to types conversion
63
static std::string clef_type_to_ldp(int clefType);
64
static std::string color_to_ldp(rgba16& color);
65
static std::string float_to_string(float num);
68
LdpGenerator* new_generator(ImoObj* pImo);
75
#endif // __LOMSE__LDP_EXPORTER_H__