Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Entity_Manager.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Entity_Manager.h
00006  *
00007  *  $Id: Entity_Manager.h,v 1.1.1.1 2003/02/21 18:36:32 chad Exp $
00008  *
00009  *  @author Nanbor Wang <nanbor@cs.wustl.edu>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef ACEXML_ENTITY_MANAGER_H
00014 #define ACEXML_ENTITY_MANAGER_H
00015 
00016 #include "ace/pre.h"
00017 #include "ACEXML/parser/parser/Parser_export.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 #pragma once
00021 #endif /* ACE_LACKS_PRAGMA_ONCE */
00022 
00023 #include "ACEXML/common/XML_Types.h"
00024 #include "ace/Hash_Map_Manager.h"
00025 #include "ace/Synch.h"
00026 
00027 typedef ACE_Hash_Map_Entry<ACEXML_String,
00028                            ACEXML_String> ACEXML_ENTITY_ENTRY;
00029 
00030 typedef ACE_Hash_Map_Manager_Ex<ACEXML_String,
00031                                 ACEXML_String,
00032                                 ACE_Hash<ACEXML_String>,
00033                                 ACE_Equal_To<ACEXML_String>,
00034                                 ACE_Null_Mutex> ACEXML_ENTITIES_MANAGER;
00035 
00036 typedef ACE_Hash_Map_Iterator_Ex<ACEXML_String,
00037                                  ACEXML_String,
00038                                  ACE_Hash<ACEXML_String>,
00039                                  ACE_Equal_To<ACEXML_String>,
00040                                  ACE_Null_Mutex> ACEXML_ENTITIES_MANAGER_ITER;
00041 
00042 typedef ACE_Hash_Map_Reverse_Iterator_Ex<ACEXML_String,
00043                                          ACEXML_String,
00044                                          ACE_Hash<ACEXML_String>,
00045                                          ACE_Equal_To<ACEXML_String>,
00046                                          ACE_Null_Mutex> ACEXML_ENTITIES_MANAGER_REVERSE_ITER;
00047 
00048 /**
00049  * @class ACEXML_Entity_Manager Entity_Manager.h "ACEXML/parser/parser/Entity_Manager.h"
00050  *
00051  * @brief Class to manage and resolve entity references.
00052  *
00053  * @todo Fill in details for this class.
00054  */
00055 class ACEXML_PARSER_Export ACEXML_Entity_Manager
00056 {
00057 public:
00058   /// Default constructor.
00059   ACEXML_Entity_Manager (void);
00060 
00061   /// Destructor.
00062   ~ACEXML_Entity_Manager (void);
00063 
00064   /// Add a new entity declaration.
00065   int add_entity (const ACEXML_Char *ref,
00066                   const ACEXML_Char *value);
00067 
00068   /// Resolve an entity reference.
00069   const ACEXML_String *resolve_entity (const ACEXML_Char *ref);
00070 
00071 private:
00072   ACEXML_ENTITIES_MANAGER entities_;
00073 };
00074 
00075 #if defined (__ACEXML_INLINE__)
00076 # include "ACEXML/parser/parser/Entity_Manager.i"
00077 #endif /* __ACEXML_INLINE__ */
00078 
00079 #include "ace/post.h"
00080 
00081 #endif /* ACEXML_ENTITY_MANAGER_H */

Generated on Mon Jun 16 13:23:21 2003 for ACEXML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002