Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / ryzom / tools / leveldesign / georges_convert / mold_elt.h
blob297c50aab8d7782597317b14f358ab11236f2943
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef NLGEORGES_MOLD_ELT_H
18 #define NLGEORGES_MOLD_ELT_H
20 #include "string_ex.h"
22 namespace NLOLDGEORGES
25 class CLoader;
27 class CMoldElt
29 protected:
30 CLoader* pl;
31 bool benum;
32 bool blist;
33 CStringEx sxname;
34 CStringEx sxfullname;
36 public:
37 CMoldElt( CLoader* const _pl );
38 virtual ~CMoldElt();
40 CStringEx GetName() const;
41 void SetName( const CStringEx& _sxname );
42 bool IsEnum() const;
43 bool IsList() const;
45 virtual CStringEx GetName() const;
46 virtual void SetName( const CStringEx& _sxname );
47 virtual bool IsEnum() const;
48 virtual bool IsList() const;
50 virtual CStringEx GetFormula();
51 virtual void Load( const CStringEx _sxfullname );
52 virtual void Load( const CStringEx _sxfullname, const CStringEx _sxdate );
53 virtual CStringEx GetEltName( const unsigned int _index ) const;
54 virtual CMoldElt* GetEltPtr( const unsigned int _index ) const;
55 virtual unsigned int GetType() const;
56 virtual CMoldElt* GetMold();
59 } // NLGEORGES
61 #endif // NLGEORGES_MOLD_ELT_H