23 #include <vlutil/vlPrint.h>
24 #include <vlutil/vlFilename.h>
25 #include <vlutil/vlUtil.h>
26 #include <vlutil/vlPrint.h>
27 #include <vlutil/vlExceptions.h>
28 #include <vlutil/vlString.h>
29 #include <vlutil/vlInetAddr.h>
34 #include <netinet/if_ether.h>
49 #define MAK_STATIC static
63 const MAKRti::DtString& searchPath =
"" );
76 const MAKRti::DtString& fileName, MAKRti::DtFilename& resolvedFilePath);
81 const MAKRti::DtString& fileName,
bool makeUnique, MAKRti::DtFilename& resolvedFilePath);
118 char** fileBuffer,
unsigned int* fileSize);
149 DT_DLL_RTIUTIL void getRegKey( MAKRti::DtString& val, HKEY rootKey,
150 const MAKRti::DtString& keyPath,
const MAKRti::DtString& keyName );
151 DT_DLL_RTIUTIL void setRegKey(
const MAKRti::DtString& keyVal, HKEY rootKey,
152 const MAKRti::DtString& keyPath,
const MAKRti::DtString& keyName,
154 DT_DLL_RTIUTIL void removeRegKey( HKEY rootKey,
const MAKRti::DtString& keyPath,
155 const MAKRti::DtString& keyName );
157 DT_DLL_RTIUTIL void setEnvVar(
const MAKRti::DtString &val,
const MAKRti::DtString& name,
158 bool isSystem,
bool expand ) ;
159 DT_DLL_RTIUTIL void getEnvVar( MAKRti::DtString& val,
const MAKRti::DtString& name,
bool isSystem );
160 DT_DLL_RTIUTIL void removeEnvVar(
const MAKRti::DtString& name,
bool isSystem );
169 DT_DLL_RTIUTIL void getSystemRunLocation(HKEY& rootKey, MAKRti::DtString& regPath);
170 DT_DLL_RTIUTIL void getUserRunLocation(HKEY& rootKey, MAKRti::DtString& regPath);
175 , std::pair< void*, void* > & resultInfo );
213 #define DtRtiFatal DtRtiOutputStream( MAKRti::DtNlFatal )
214 #define DtRtiWarn DtRtiOutputStream( MAKRti::DtNlWarn )
215 #define DtRtiInfo DtRtiOutputStream( MAKRti::DtNlInfo )
216 #define DtRtiVerbose DtRtiOutputStream( MAKRti::DtNlVerbose )
217 #define DtRtiDebug DtRtiOutputStream( MAKRti::DtNlDebug )
220 #define DtIsMember(container, element) (container.find(element) != container.end())
227 typename T::iterator iter = pointerVector.begin();
228 while (iter != pointerVector.end())
231 iter = pointerVector.erase(iter);
259 myVector.push_back(
new T(*element));
270 typename T::iterator iter = pointerSet.begin();
271 while (iter != pointerSet.end())
274 pointerSet.erase(iter);
275 iter = pointerSet.begin();
301 mySet.insert(element);
305 mySet.insert(
new T(*element));
325 typename std::map<T*, Y>::iterator iter =
myMap.begin();
326 typename std::map<T*, Y>::iterator theEnd =
myMap.end();
327 for ( ; iter != theEnd; ++iter )
339 myMap.insert(element);
343 myMap.insert(std::make_pair(
new T(*element.first), element.second));
352 template<
typename T,
typename TContainer >
355 typename TContainer::iterator pos = std::find( container.begin(), container.end(), value );
356 if ( pos != container.end() )
363 container.insert( pos, value );
369 #ifdef DtTHROW_PROPAGATE
370 #undef DtTHROW_PROPAGATE
372 #define DtTHROW_PROPAGATE(exceptionClass,errorMsg, exPtr) \
373 throw exceptionClass(MAKRti::DtString(#exceptionClass": ") + errorMsg, __DtFUNC__, MAKRti::DtFilename::stripPath(__FILE__), __LINE__, exPtr)
382 typedef MAKRti::DtTemplatedException<DtRtiExceptionDesignatorDefault>
DtRtiException;
397 bool ignoreLoopback);