MeVisLabToolboxReference
MeVis/Foundation/Sources/OSXSupport/macResourceFork.h
Go to the documentation of this file.
00001 // **InsertLicense** code author="Felix Ritter" version="1.0"
00002 
00006 
00007 #ifndef __macResourceFork_H
00008 #define __macResourceFork_H
00009 #if defined(__APPLE__)
00010 
00011 #include "macByteData.h"
00012 #include <string>
00013 
00014 namespace macx {
00015   
00017   class ResourceFork
00018   {
00019   public:
00020     
00022     static bool hasNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode);
00023     
00025     static void updateNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode, const void *value, size_t size);
00026     
00028     static void removeNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode);
00029   };
00030 
00031 }
00032 
00033 #endif  // __APPLE__
00034 #endif  // __macResourceFork_H