MeVisLab Toolbox Reference
macResourceFork.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef MAC_RESOURCE_FORK_H
14 #define MAC_RESOURCE_FORK_H
15 
17 
18 #if defined(__APPLE__)
19 
21 #include <string>
22 
23 namespace macos {
24 
27  {
28  public:
29 
31  static bool hasNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode);
32 
34  static void updateNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode, const void *value, size_t size);
35 
37  static void removeNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode);
38  };
39 
40 }
41 
42 #endif // __APPLE__
43 #endif // __macResourceFork_H
Add data to resource fork of files on HFS & APFS volumes.
static bool hasNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode)
Check for resource identified by name and type associated with path.
static void updateNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode, const void *value, size_t size)
Associate name, type, and value together as resource of path.
static void removeNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode)
Remove resource identified by name and type associated with path.
#define OSXSUPPORT_PUBLIC_API
Symbol visibility macros.
AppleScript support.