imgtools/imgcheck/inc/common.h
changeset 620 ad8ffc8e1982
parent 590 360bd6b35136
equal deleted inserted replaced
585:238f4cb8391f 620:ad8ffc8e1982
    20 
    20 
    21 
    21 
    22 
    22 
    23 #ifndef COMMON_H
    23 #ifndef COMMON_H
    24 #define COMMON_H
    24 #define COMMON_H
    25 
    25 #ifdef WIN32
       
    26 #ifdef _STLP_INTERNAL_WINDOWS_H
       
    27 #define __INTERLOCKED_DECLARED
       
    28 #endif
       
    29 #include <windows.h>
       
    30 #undef DELETE
       
    31 #endif
    26 #include "typedefs.h"
    32 #include "typedefs.h"
    27 
    33 
    28 /**
    34 /**
    29 Forward declaration
    35 Forward declaration
    30 
    36 
    38 /**
    44 /**
    39 Typedefs used all over the tool.
    45 Typedefs used all over the tool.
    40 
    46 
    41 @internalComponent
    47 @internalComponent
    42 @released
    48 @released
    43 */
    49 */ 
    44 typedef std::multimap<String, ExeNamesVsDepListMap> ImageVsDependencyMap;
    50 typedef list<unsigned int> UnIntList;
    45 typedef std::list<unsigned int> UnIntList;
    51 typedef vector<ReportWriter*> WriterPtrList;
    46 typedef std::vector<ReportWriter*> WriterPtrList;
    52 typedef vector<Checker*> CheckerPtrList;
    47 typedef std::vector<Checker*> CheckerPtrList;
    53 typedef vector<ImageReader*> ImageReaderPtrList;
    48 typedef std::vector<ImageReader*> ImageReaderPtrList;
       
    49 
    54 
    50 /**
    55 /**
    51 Constants used to mark whether the option received or not.
    56 Constants used to mark whether the option received or not.
    52 
    57 
    53 @internalComponent
    58 @internalComponent
    73 {
    78 {
    74 public:
    79 public:
    75 	ExeAttribute(){};
    80 	ExeAttribute(){};
    76 	~ExeAttribute(){};
    81 	~ExeAttribute(){};
    77 
    82 
    78 	String iAttName;
    83 	string iAttName;
    79 	String iAttValue;
    84 	string iAttValue;
    80 	String iAttStatus;
    85 	string iAttStatus;
    81 };
    86 };
    82 
    87 
    83 /**
    88 /**
    84 Enums used during command line input processing.
    89 Enums used during command line input processing.
    85 
    90 
   109 @released
   114 @released
   110 */
   115 */
   111 class Common
   116 class Common
   112 {
   117 {
   113 public:
   118 public:
   114 	static String IntToString(unsigned int aValue);
   119 	static string IntToString(unsigned int aValue);
   115 	static unsigned int StringToInt(String& aStringVal);
   120 	static unsigned int StringToInt(string& aStringVal);
   116 };
   121 };
   117 
   122 
   118 /** 
   123 /** 
   119 Default Log file name, used for logging the progress of application.
   124 Default Log file name, used for logging the progress of application.
   120 
   125 
   121 @internalComponent
   126 @internalComponent
   122 @released
   127 @released
   123 */
   128 */
   124 const String gLogFileName ("imgcheck.log");
   129 const string gLogFileName ("imgcheck.log");
   125 
   130 
   126 #endif //COMMON_H
   131 #endif //COMMON_H