src/jdk.packager/share/native/library/common/GenericPlatform.h
branchJDK-8200758-branch
changeset 56982 e094d5483bd6
parent 56854 aedce3eaaf17
child 56983 01decb67d4f0
equal deleted inserted replaced
56963:eaca4369b068 56982:e094d5483bd6
    25 
    25 
    26 #ifndef GENERICPLATFORM_H
    26 #ifndef GENERICPLATFORM_H
    27 #define GENERICPLATFORM_H
    27 #define GENERICPLATFORM_H
    28 
    28 
    29 #include "FilePath.h"
    29 #include "FilePath.h"
    30 //#include "Platform.h"
    30 // #include "Platform.h"
    31 
    31 
    32 #ifdef WINDOWS
    32 #ifdef WINDOWS
    33 #pragma warning( push )
    33 #pragma warning( push )
    34 #pragma warning( disable : 4250 ) // C4250 - 'class1' : inherits 'class2::member' via dominance
    34 // C4250 - 'class1' : inherits 'class2::member' via dominance
       
    35 #pragma warning( disable : 4250 )
    35 #endif
    36 #endif
    36 
    37 
    37 class GenericPlatform : virtual public Platform {
    38 class GenericPlatform : virtual public Platform {
    38 public:
    39 public:
    39     GenericPlatform(void);
    40     GenericPlatform(void);
    43     virtual TString GetPackageLauncherDirectory();
    44     virtual TString GetPackageLauncherDirectory();
    44 
    45 
    45     virtual TString GetConfigFileName();
    46     virtual TString GetConfigFileName();
    46 
    47 
    47     virtual std::list<TString> LoadFromFile(TString FileName);
    48     virtual std::list<TString> LoadFromFile(TString FileName);
    48     virtual void SaveToFile(TString FileName, std::list<TString> Contents, bool ownerOnly);
    49     virtual void SaveToFile(TString FileName,
       
    50             std::list<TString> Contents, bool ownerOnly);
    49 
    51 
    50 #if defined(WINDOWS) || defined(LINUX)
    52 #if defined(WINDOWS) || defined(LINUX)
    51     virtual TString GetAppName();
    53     virtual TString GetAppName();
    52 #endif //WINDOWS || LINUX
    54 #endif // WINDOWS || LINUX
    53 
    55 
    54     virtual std::map<TString, TString> GetKeys();
    56     virtual std::map<TString, TString> GetKeys();
    55 
    57 
    56 #ifdef DEBUG
    58 #ifdef DEBUG
    57     virtual DebugState GetDebugState();
    59     virtual DebugState GetDebugState();
    58 #endif //DEBUG
    60 #endif // DEBUG
    59 };
    61 };
    60 #ifdef WINDOWS
    62 #ifdef WINDOWS
    61 #pragma warning( pop ) // C4250
    63 #pragma warning( pop ) // C4250
    62 #endif
    64 #endif
    63 #endif //GENERICPLATFORM_H
    65 #endif // GENERICPLATFORM_H