getType.patch
| b/code/nel/include/nel/georges/u_form_elm.h Tue Aug 03 15:26:44 2010 +0200 | ||
|---|---|---|
| 224 | 224 |
// ** Atom element methods |
| 225 | 225 |
|
| 226 | 226 |
|
| 227 |
/// Returns the type of the atom. NULL otherwise. |
|
| 228 |
virtual const class UType *getType () = 0; |
|
| 227 | 229 |
/// Return true if the element is an atom |
| 228 | 230 |
virtual bool isAtom () const = 0; |
| 229 | 231 |
|
| b/code/nel/src/georges/form_elm.cpp Tue Aug 03 15:26:44 2010 +0200 | ||
|---|---|---|
| 228 | 228 |
|
| 229 | 229 |
// *************************************************************************** |
| 230 | 230 |
|
| 231 |
const CType* CFormElm::getType () |
|
| 232 |
{
|
|
| 233 |
warning (false, "getType", "This node is not an atom."); |
|
| 234 |
return 0; |
|
| 235 |
} |
|
| 236 |
// *************************************************************************** |
|
| 237 |
|
|
| 231 | 238 |
bool CFormElm::getValue (string &/* result */, TEval /* evaluate */) const |
| 232 | 239 |
{
|
| 233 | 240 |
warning (false, "getValue", "This node is not an atom."); |
| ... | ... | |
| 2808 | 2815 |
|
| 2809 | 2816 |
// *************************************************************************** |
| 2810 | 2817 |
|
| 2818 |
const CType* CFormElmAtom::getType () |
|
| 2819 |
{
|
|
| 2820 |
return Type; |
|
| 2821 |
} |
|
| 2822 |
|
|
| 2823 |
// *************************************************************************** |
|
| 2824 |
|
|
| 2811 | 2825 |
void CFormElmAtom::getDependencies (std::set<std::string> &/* dependencies */) const |
| 2812 | 2826 |
{
|
| 2813 | 2827 |
} |
| b/code/nel/src/georges/form_elm.h Tue Aug 03 15:26:44 2010 +0200 | ||
|---|---|---|
| 87 | 87 |
virtual bool setValueByName (bool value, const char *name, bool *created); |
| 88 | 88 |
virtual bool setValueByName (NLMISC::CRGBA value, const char *name, bool *created); |
| 89 | 89 |
virtual UFormElm *getParent () const; |
| 90 |
virtual const CType *getType (); |
|
| 90 | 91 |
virtual bool isArray () const; |
| 91 | 92 |
virtual bool getArraySize (uint &size) const; |
| 92 | 93 |
virtual bool getArrayNode (const UFormElm **result, uint arrayIndex) const; |
| ... | ... | |
| 432 | 433 |
bool setParent (CFormElm *parent); |
| 433 | 434 |
void getFormName (std::string &result, const CFormElm *child) const; |
| 434 | 435 |
void getDependencies (std::set<std::string> &dependencies) const; |
| 436 |
const CType* getType (); |
|
| 435 | 437 |
|
| 436 | 438 |
// Call by CFormLoader |
| 437 | 439 |
void read (xmlNodePtr node, CFormLoader &loader, const CType *type, CForm *form); |