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);
121 char** fileBuffer,
unsigned int* fileSize);
152 DT_DLL_RTIUTIL void getRegKey( MAKRti::DtString& val, HKEY rootKey,
153 const MAKRti::DtString& keyPath,
const MAKRti::DtString& keyName );
154 DT_DLL_RTIUTIL void setRegKey(
const MAKRti::DtString& keyVal, HKEY rootKey,
155 const MAKRti::DtString& keyPath,
const MAKRti::DtString& keyName,
157 DT_DLL_RTIUTIL void removeRegKey( HKEY rootKey,
const MAKRti::DtString& keyPath,
158 const MAKRti::DtString& keyName );
160 DT_DLL_RTIUTIL void setEnvVar(
const MAKRti::DtString &val,
const MAKRti::DtString& name,
161 bool isSystem,
bool expand ) ;
162 DT_DLL_RTIUTIL void getEnvVar( MAKRti::DtString& val,
const MAKRti::DtString& name,
bool isSystem );
163 DT_DLL_RTIUTIL void removeEnvVar(
const MAKRti::DtString& name,
bool isSystem );
172 DT_DLL_RTIUTIL void getSystemRunLocation(HKEY& rootKey, MAKRti::DtString& regPath);
173 DT_DLL_RTIUTIL void getUserRunLocation(HKEY& rootKey, MAKRti::DtString& regPath);
178 , std::pair< void*, void* > & resultInfo );
216 #define DtRtiFatal DtRtiOutputStream( MAKRti::DtNlFatal )
217 #define DtRtiWarn DtRtiOutputStream( MAKRti::DtNlWarn )
218 #define DtRtiInfo DtRtiOutputStream( MAKRti::DtNlInfo )
219 #define DtRtiVerbose DtRtiOutputStream( MAKRti::DtNlVerbose )
220 #define DtRtiDebug DtRtiOutputStream( MAKRti::DtNlDebug )
223 #define DtIsMember(container, element) (container.find(element) != container.end())
230 typename T::iterator iter = pointerVector.begin();
231 while (iter != pointerVector.end())
234 iter = pointerVector.erase(iter);
262 myVector.push_back(
new T(*element));
273 typename T::iterator iter = pointerSet.begin();
274 while (iter != pointerSet.end())
277 pointerSet.erase(iter);
278 iter = pointerSet.begin();
304 mySet.insert(element);
308 mySet.insert(
new T(*element));
328 typename std::map<T*, Y>::iterator iter =
myMap.begin();
329 typename std::map<T*, Y>::iterator theEnd =
myMap.end();
330 for ( ; iter != theEnd; ++iter )
342 myMap.insert(element);
346 myMap.insert(std::make_pair(
new T(*element.first), element.second));
355 template<
typename T,
typename TContainer >
358 typename TContainer::iterator pos = std::find( container.begin(), container.end(), value );
359 if ( pos != container.end() )
366 container.insert( pos, value );
372 #ifdef DtTHROW_PROPAGATE
373 #undef DtTHROW_PROPAGATE
375 #define DtTHROW_PROPAGATE(exceptionClass,errorMsg, exPtr) \
376 throw exceptionClass(MAKRti::DtString(#exceptionClass": ") + errorMsg, __DtFUNC__, MAKRti::DtFilename::stripPath(__FILE__), __LINE__, exPtr)
385 typedef MAKRti::DtTemplatedException<DtRtiExceptionDesignatorDefault>
DtRtiException;
400 bool ignoreLoopback);