Diff for /parser3/src/classes/xnode.h between versions 1.22 and 1.35

version 1.22, 2004/03/10 10:42:11 version 1.35, 2020/12/15 17:10:30
Line 1 Line 1
 /** @file  /** @file
         Parser: @b dnode methods class - MDnode class decl.          Parser: @b dnode methods class - MDnode class decl.
   
         Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
   
 #ifndef XNODE_H  #ifndef XNODE_H
 #define XNODE_H  #define XNODE_H
   
 static const char * const IDENT_XNODE_H="$Date$";  #define IDENT_XNODE_H "$Id$"
   
 class MXnode: public Methoded {  class MXnode: public Methoded {
 public: // Value  public: // Value
   
         /// MXnode: +$const          /// MXnode: +$const
         Value* get_element(const String& aname, Value& aself, bool looking_up) {          Value* get_element(const String& aname) {
                 // $method                  // $method
                 if(Value* result=Methoded::get_element(aname, aself, looking_up))                  if(Value* result=Methoded::get_element(aname))
                         return result;                          return result;
   
                 // $const                  // $const
Line 28  public: // Value Line 28  public: // Value
   
   
 public: // VStateless_class  public: // VStateless_class
         Value* create_new_value() {           Value* create_new_value(Pool&) { 
                 throw Exception("parser.runtime",                  throw Exception(PARSER_RUNTIME,
                         0,                          0,
                         "no constructors available, use CreateXXX DOM methods to create nodes instead");                           "no constructors available, use CreateXXX DOM methods to create nodes instead"); 
         }          }
   
 public:  public:
         MXnode(const char* aname=0, VStateless_class* abase=0);          MXnode(const char* aname=0);
   
 public: // Methoded  public: // Methoded
         bool used_directly() { return true; }          bool used_directly() { return true; }
Line 45  private: Line 45  private:
         HashStringValue consts;          HashStringValue consts;
 };  };
   
 GdomeNode* as_node(MethodParams& params, int index, const char* msg);  xmlNode& as_node(MethodParams& params, int index, const char* msg);
   xmlChar* as_xmlchar(Request& r, MethodParams& params, int index, const char* msg);
   xmlChar* as_xmlqname(Request& r, MethodParams& params, int index, const char* msg=0);
   xmlChar* as_xmlncname(Request& r, MethodParams& params, int index, const char* msg=0);
   xmlChar* as_xmlname(Request& r, MethodParams& params, int index, const char* msg=0);
   xmlChar* as_xmlnsuri(Request& r, MethodParams& params, int index);
   xmlNs& pa_xmlMapNs(xmlDoc& doc, const xmlChar* href, const xmlChar* prefix);
   
 #endif  #endif

Removed from v.1.22  
changed lines
  Added in v.1.35


E-mail: