Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / ryzom / tools / leveldesign / georges_convert / item_elt.cpp
blobf9b1ec96d535b3366ba3959ab3a6fe6196b45bab
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 #include "stdgeorgesconvert.h"
18 #include "item_elt.h"
20 namespace NLOLDGEORGES
23 //////////////////////////////////////////////////////////////////////
24 // Construction/Destruction
25 //////////////////////////////////////////////////////////////////////
27 CItemElt::CItemElt( CLoader* const _pl )
29 nlassert( _pl );
30 pl = _pl;
31 listparent = 0;
32 bmodified = false;
35 CItemElt::~CItemElt()
39 bool CItemElt::SetModified( const unsigned int _index )
41 if( !_index )
42 bmodified = true;
43 return( !_index );
46 void CItemElt::SetModified( const bool _b )
48 bmodified = _b;
51 unsigned int CItemElt::GetInfos() const
53 return( infos );
56 void CItemElt::AddInfos( const unsigned int _infos )
58 infos |= _infos;
61 void CItemElt::SetListParent( CItemElt* const _listparent )
63 listparent = _listparent;
66 CItemElt* CItemElt::GetListParent() const
68 return( listparent );
71 void CItemElt::SetName( const CStringEx _sxname )
73 sxname = _sxname;
76 CStringEx CItemElt::GetName() const
78 return( sxname );
81 CStringEx CItemElt::GetParent() const
83 return( sxparent );
86 CStringEx CItemElt::GetFormula() const
88 CStringEx object;
89 return( object );
92 CStringEx CItemElt::GetParentResult() const
94 return( sxparentresult );
97 CStringEx CItemElt::GetParentValue() const
99 return( sxparentvalue );
102 CStringEx CItemElt::GetCurrentResult() const
104 return( sxcurrentresult );
107 CStringEx CItemElt::GetCurrentValue() const
109 return( sxcurrentvalue );
112 void CItemElt::SetParentValue( const CStringEx _sxparentvalue )
116 void CItemElt::SetCurrentValue( const CStringEx _sxcurrentvalue )
120 void CItemElt::FillParent( const CFormBodyElt* const _pfbe )
124 void CItemElt::FillCurrent( const CFormBodyElt* const _pfbe )
128 CItemElt* CItemElt::Clone()
130 return( 0 );
133 CFormBodyElt* CItemElt::BuildForm()
135 return( 0 );
138 unsigned int CItemElt::GetNbElt() const
140 return( 0 );
143 CItemElt* CItemElt::GetElt( const unsigned int _index ) const
145 if( !_index )
146 return( ( CItemElt* )( this ) );
147 return( 0 );
150 CItemElt* CItemElt::GetElt( const CStringEx _sxname ) const
152 return( 0 );
155 unsigned int CItemElt::GetNbChild ()
157 return 0;
160 CItemElt* CItemElt::GetChild (unsigned int _index)
162 return NULL;