diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-11-17 18:20:13 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-11-17 18:20:13 +0000 |
commit | d34d361da34f2315e39419bae8493e9c9d21b480 (patch) | |
tree | 9b4549f8bdb7ba8b8ff00e47ec335c08c2b0fedc /TAO/tao/CORBALOC_Parser.h | |
parent | 26f00ad8f3831b4629fc2e1c96a838eb5ad31c5e (diff) | |
download | ATCD-d34d361da34f2315e39419bae8493e9c9d21b480.tar.gz |
ChangeLogTag:Fri Nov 17 10:11:17 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/tao/CORBALOC_Parser.h')
-rw-r--r-- | TAO/tao/CORBALOC_Parser.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/TAO/tao/CORBALOC_Parser.h b/TAO/tao/CORBALOC_Parser.h index 41816e41d0f..6bef830524c 100644 --- a/TAO/tao/CORBALOC_Parser.h +++ b/TAO/tao/CORBALOC_Parser.h @@ -18,22 +18,21 @@ #define TAO_CORBALOC_PARSER_H #include "ace/pre.h" -#include "tao/ORB.h" -#include "tao/Connector_Registry.h" #include "tao/IOR_Parser.h" -#include "tao/Stub.h" -#include "tao/ORB_Core.h" - -#include "tao/PortableServer/POA.h" +// @@ Priyanka: notice how many includes I was able to remove. In +// general you should try to minimize the number of #includes in your +// .h files. In fact, I believe that once you remove the orb_ and +// mprofile_ fields below these two includes can go away too! +#include "tao/ORB.h" #include "tao/MProfile.h" -#include "ior_corbaloc_export.h" - #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#include "ace/Service_Config.h" + class TAO_Export TAO_CORBALOC_Parser : public TAO_IOR_Parser { // = TITLE @@ -62,11 +61,18 @@ public: ACE_THROW_SPEC ((CORBA::SystemException)); // Parse the ior-string that is passed. - private: +private: + // @@ Priyanka: do you really need this (see next comment)? BTW, in + // general we put private data members *after* private methods. CORBA::ORB_var orb_; // ORB + // @@ Priyanka: this makes the class non-reentrant, only one thread + // can parse a string at a time. The "Right Thing"[tm] is to + // pass the MProfile to whatever helper methods you have, so they + // can add stuff to it. That way there is no resource + // contention. TAO_MProfile mprofile_; // One big mprofile which consists the profiles of all the endpoints. |