analyzetool/commandlineengine/inc/CATBase.h
branchRCL_3
changeset 59 8ad140f3dd41
parent 49 7fdc9a71d314
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
   168 	* @return string
   168 	* @return string
   169 	*/
   169 	*/
   170 	static string RemovePathAndExt( string sFileName, bool bReverseFindExt = false );
   170 	static string RemovePathAndExt( string sFileName, bool bReverseFindExt = false );
   171 
   171 
   172 	/**
   172 	/**
   173 	* Returns time  stamp in microseconds parsed from start of trace message
       
   174 	* @param sLineStart
       
   175 	* @return int
       
   176 	*/
       
   177 	unsigned __int64 ParseTimeStamp( string sLineStart );
       
   178 
       
   179 	/**
       
   180 	* Check if given file exists.
   173 	* Check if given file exists.
   181 	* @param pFilename Pointer to file name.
   174 	* @param pFilename Pointer to file name.
   182 	* @return False If file does not exists.
   175 	* @return False If file does not exists.
   183 	*/
   176 	*/
   184 	static bool FileExists( const char* pFilename );
   177 	static bool FileExists( const char* pFilename );
   288 	* @return string String until next space.
   281 	* @return string String until next space.
   289 	*/
   282 	*/
   290 	static string GetStringUntilNextSpace( string& sInput, bool bEraseFromInput = true );
   283 	static string GetStringUntilNextSpace( string& sInput, bool bEraseFromInput = true );
   291 
   284 
   292 	/**
   285 	/**
   293 	* Function returns string from begin of given string until next atool's main id <AT>,
       
   294 	* characters until next space are removed from sInput string.
       
   295 	*
       
   296 	* @param sInput Line which contains main id.
       
   297 	* @param bEraseFromInput If true characters before main id will be removed.
       
   298 	* @return string String until main id.
       
   299 	*/
       
   300 	static string GetStringUntilMainId( string& sInput, bool bEraseFromInput = true );
       
   301 
       
   302 	/**
       
   303 	* Convert unix path to windows
   286 	* Convert unix path to windows
   304 	* @param sPath
   287 	* @param sPath
   305 	*/
   288 	*/
   306 	static void ConvertUnixPathToWin( string& sPath );
   289 	static void ConvertUnixPathToWin( string& sPath );
   307 
   290 
   308 	/**
   291 	/**
   309 	* Create Temporary AT Cpp file
   292 	* Create Temporary AT Cpp file
   310 	* @param sId unique id to add in file name
   293 	* @param sId unique id to add in file name
   311 	* @param sPath where to create
   294 	* @param sPath where to create
   312 	* @param sS60FileName of the logging file
   295 	* @param sS60FileName of the logging file
   313 	* @param sS60FilePath of the logging file
       
   314 	* @param iLogOption logging mode
   296 	* @param iLogOption logging mode
   315 	* @param iIsDebug build type
   297 	* @param iIsDebug build type
   316 	* @param iAllocCallStackSize
   298 	* @param iAllocCallStackSize
   317 	* @param iFreeCallStackSize
   299 	* @param iFreeCallStackSize
   318 	* @return true if successful
   300 	* @return true if successful
   319 	*/
   301 	*/
   320 	static bool CreateTemporaryCpp( const string& sId
   302 	static bool CreateTemporaryCpp( const string& sId
   321 								 ,const string& sPath
   303 								 ,const string& sPath
   322 								 ,const string& sS60FileName
   304 								 ,const string& sS60FileName
   323 								 ,const string& sS60FilePath
       
   324 								 ,int iLogOption
   305 								 ,int iLogOption
   325 								 ,int iIsDebug
   306 								 ,int iIsDebug
   326 								 ,int iAllocCallStackSize
   307 								 ,int iAllocCallStackSize
   327 								 ,int iFreeCallStackSize );
   308 								 ,int iFreeCallStackSize );
   328 	/**
   309 	/**
   360 	* checks given file is it data file
   341 	* checks given file is it data file
   361 	* @param sFile
   342 	* @param sFile
   362 	* @return true if it is datafile
   343 	* @return true if it is datafile
   363 	*/
   344 	*/
   364 	static bool IsDataFile( string sFile );
   345 	static bool IsDataFile( string sFile );
   365 
       
   366 	/**
       
   367 	* checks given file is it binary log file
       
   368 	* @param sFile
       
   369 	* @return true if it is binary logfile
       
   370 	*/
       
   371 	static bool IsBinaryLogFile( string sFile );
       
   372 
   346 
   373 	/**
   347 	/**
   374 	* Parses a path string containing ".." to a valid
   348 	* Parses a path string containing ".." to a valid
   375 	* path without relations. If given string does
   349 	* path without relations. If given string does
   376 	* not contain relations it will not be changed
   350 	* not contain relations it will not be changed