ORepHelpers.h
См. документацию.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00023
00024 #ifndef ORepHelpers_H_
00025 #define ORepHelpers_H_
00026
00027 #include <omniORB4/CORBA.h>
00028 #include <omniORB4/Naming.hh>
00029 #include <string>
00030 #include "Exceptions.h"
00031
00032
00037 namespace ORepHelpers
00038 {
00040 CosNaming::NamingContext_ptr getRootNamingContext(CORBA::ORB_ptr orb,
00041 const std::string& nsName, int timeOutSec=2);
00042
00044 CosNaming::NamingContext_ptr getContext(const std::string& cname, int argc,
00045 const char* const* argv, const std::string& nsName)
00046 throw(UniSetTypes::ORepFailed);
00047
00048 CosNaming::NamingContext_ptr getContext(CORBA::ORB_ptr orb, const std::string& cname,
00049 const std::string& nsName)
00050 throw(UniSetTypes::ORepFailed);
00051
00053 const std::string getSectionName(const std::string& fullName, const std::string brk="/");
00054
00056 const std::string getShortName(const std::string& fullName, const std::string brk="/");
00057
00058
00060 char checkBadSymbols(const std::string& str);
00061
00063 std::string BadSymbolsToStr();
00064
00065 }
00066 #endif