imgtools/imgcheck/inc/checker.h
changeset 629 541af5ee3ed9
parent 590 360bd6b35136
equal deleted inserted replaced
628:7c4a911dc066 629:541af5ee3ed9
    24 
    24 
    25 #include "cmdlinehandler.h"
    25 #include "cmdlinehandler.h"
    26 #include "reporter.h"
    26 #include "reporter.h"
    27 #include "imagereader.h"
    27 #include "imagereader.h"
    28 
    28 
    29 typedef std::map<std::string, ExeVsIdDataMap> ImgVsExeIdData;
    29 typedef map<string, ExeVsIdDataMap> ImgVsExeIdData;
    30 
    30 
    31 /** 
    31 /** 
    32 Different status of a dependency
    32 Different status of a dependency
    33 
    33 
    34 @internalComponent
    34 @internalComponent
    35 @released
    35 @released
    36 */
    36 */
    37 const String KStatusYes("Available");
    37 const char KStatusYes[] = "Available";
    38 const String KStatusNo("Missing");
    38 const char KStatusNo[] = "Missing";
    39 const String KStatusHidden("Hidden");
    39 const char KStatusHidden[] = "Hidden";
    40 const String KDependency("Dependency");
    40 const char KDependency[] = "Dependency";
    41 
    41 
    42 /** 
    42 /** 
    43 All SID validation status constants
    43 All SID validation status constants
    44 
    44 
    45 @internalComponent
    45 @internalComponent
    46 @released
    46 @released
    47 */
    47 */
    48 const String KUniqueAlias("Unique(alias)");
    48 const char KUniqueAlias[] = "Unique(alias)";
    49 const String KUnique("Unique");
    49 const char KUnique[] = "Unique";
    50 const String KDuplicate("Duplicate");
    50 const char KDuplicate[] = "Duplicate";
    51 const String KSid("SID");
    51 const char KSid[] = "SID";
    52 
    52 
    53 /** 
    53 /** 
    54 VID and Debuggable flag validation status constants
    54 VID and Debuggable flag validation status constants
    55 
    55 
    56 @internalComponent
    56 @internalComponent
    57 @released
    57 @released
    58 */
    58 */
    59 const String KValid("Valid");
    59 const char KValid[] = "Valid";
    60 const String KInValid("Invalid");
    60 const char KInValid[] = "Invalid";
    61 const String KDbgMatching("Matching");
    61 const char KDbgMatching[] = "Matching";
    62 const String KDbgNotMatching("Not Matching");
    62 const char KDbgNotMatching[] = "Not Matching";
    63 const String KDbgFlag("DBG");
    63 const char KDbgFlag[] = "DBG";
    64 const String KVid("VID");
    64 const char KVid[] = "VID";
    65 
    65 
    66 /**
    66 /**
    67 This class is a virtual base. If any new checks or validation needs to be 
    67 This class is a virtual base. If any new checks or validation needs to be 
    68 included as part of this tool, the new checker or validator class should be
    68 included as part of this tool, the new checker or validator class should be
    69 derived from this class.
    69 derived from this class.
    83 
    83 
    84 public:
    84 public:
    85 	Checker(CmdLineHandler* aCmdPtr,ImageReaderPtrList& aImageReaderList);
    85 	Checker(CmdLineHandler* aCmdPtr,ImageReaderPtrList& aImageReaderList);
    86 	virtual ~Checker();
    86 	virtual ~Checker();
    87 	virtual void Check(ImgVsExeStatus& imgVsExeStatus)=0;
    87 	virtual void Check(ImgVsExeStatus& imgVsExeStatus)=0;
    88 	virtual void PrepareAndWriteData(ExeContainer* aExeContainer)=0;
    88 	virtual void PrepareAndWriteData(ExeContainer& aExeContainer)=0;
    89 };
    89 };
    90 #endif//CHECKER_H
    90 #endif//CHECKER_H