24 #ifndef __SDKUtilities_h__ 25 #define __SDKUtilities_h__ 27 #include "IPMStream.h" 48 static void InvokePlugInAboutBox(
const PMString alertStringID);
67 static bool IsAbsolutePath(
PMString thisString);
77 static bool IsUnixPath(
PMString thisstring);
87 static bool IsMacPath(
PMString thisstring);
97 static bool IsWinPath(
PMString thisstring);
105 static void RemoveLastElement(
PMString& fromthis);
113 static void RemoveFirstElement(
PMString& fromthis);
146 static void convertToMacPath(
PMString& thisstring);
153 static void convertToWinPath(
PMString& thisstring);
172 static void DumpBoss(
IPMUnknown * for_this_if);
180 static void DumpBoss(
UIDRef for_this_object);
195 static void DumpMessage(
const char* msg,
const ClassID& theChange,
const PMIID& protocol);
215 static ErrorCode GetApplicationFolder(
PMString& appFolder);
221 static ErrorCode AbsolutePathToSysFile(
PMString path,
IDFile& out);
229 uint32 mode = kOpenIn,
230 OSType fileType = 0x3f3f3f3f,
231 OSType creator = 0x3f3f3f3f
240 uint32 mode = kOpenOut|kOpenTrunc,
241 OSType fileType =
'TEXT',
242 OSType creator =
'CWIE' 250 static ErrorCode FileExistsForRead(
const PMString& fullPath);
256 static void AppendPathSeparator(
PMString& path);
265 static void GetFileCreatorType(
const IDFile spec, SysOSType* fileType, SysOSType* creator);
274 #endif // ID_DEPRECATED 276 #endif // __SDKUtilities_h__