analyzetool/commandlineengine/inc/CATBase.h
branchRCL_3
changeset 49 7fdc9a71d314
parent 19 da2cedce4920
child 59 8ad140f3dd41
equal deleted inserted replaced
46:e26895079d7c 49:7fdc9a71d314
   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 	/**
   173 	* Check if given file exists.
   180 	* Check if given file exists.
   174 	* @param pFilename Pointer to file name.
   181 	* @param pFilename Pointer to file name.
   175 	* @return False If file does not exists.
   182 	* @return False If file does not exists.
   176 	*/
   183 	*/
   177 	static bool FileExists( const char* pFilename );
   184 	static bool FileExists( const char* pFilename );
   281 	* @return string String until next space.
   288 	* @return string String until next space.
   282 	*/
   289 	*/
   283 	static string GetStringUntilNextSpace( string& sInput, bool bEraseFromInput = true );
   290 	static string GetStringUntilNextSpace( string& sInput, bool bEraseFromInput = true );
   284 
   291 
   285 	/**
   292 	/**
       
   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 	/**
   286 	* Convert unix path to windows
   303 	* Convert unix path to windows
   287 	* @param sPath
   304 	* @param sPath
   288 	*/
   305 	*/
   289 	static void ConvertUnixPathToWin( string& sPath );
   306 	static void ConvertUnixPathToWin( string& sPath );
   290 
   307 
   291 	/**
   308 	/**
   292 	* Create Temporary AT Cpp file
   309 	* Create Temporary AT Cpp file
   293 	* @param sId unique id to add in file name
   310 	* @param sId unique id to add in file name
   294 	* @param sPath where to create
   311 	* @param sPath where to create
   295 	* @param sS60FileName of the logging file
   312 	* @param sS60FileName of the logging file
       
   313 	* @param sS60FilePath of the logging file
   296 	* @param iLogOption logging mode
   314 	* @param iLogOption logging mode
   297 	* @param iIsDebug build type
   315 	* @param iIsDebug build type
   298 	* @param iAllocCallStackSize
   316 	* @param iAllocCallStackSize
   299 	* @param iFreeCallStackSize
   317 	* @param iFreeCallStackSize
   300 	* @return true if successful
   318 	* @return true if successful
   301 	*/
   319 	*/
   302 	static bool CreateTemporaryCpp( const string& sId
   320 	static bool CreateTemporaryCpp( const string& sId
   303 								 ,const string& sPath
   321 								 ,const string& sPath
   304 								 ,const string& sS60FileName
   322 								 ,const string& sS60FileName
       
   323 								 ,const string& sS60FilePath
   305 								 ,int iLogOption
   324 								 ,int iLogOption
   306 								 ,int iIsDebug
   325 								 ,int iIsDebug
   307 								 ,int iAllocCallStackSize
   326 								 ,int iAllocCallStackSize
   308 								 ,int iFreeCallStackSize );
   327 								 ,int iFreeCallStackSize );
   309 	/**
   328 	/**
   341 	* checks given file is it data file
   360 	* checks given file is it data file
   342 	* @param sFile
   361 	* @param sFile
   343 	* @return true if it is datafile
   362 	* @return true if it is datafile
   344 	*/
   363 	*/
   345 	static bool IsDataFile( string sFile );
   364 	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 );
   346 
   372 
   347 	/**
   373 	/**
   348 	* Parses a path string containing ".." to a valid
   374 	* Parses a path string containing ".." to a valid
   349 	* path without relations. If given string does
   375 	* path without relations. If given string does
   350 	* not contain relations it will not be changed
   376 	* not contain relations it will not be changed