Utilities Class Reference

Author:
Lynn Hazan
More...

#include <utilities.h>

List of all members.

Static Public Member Functions

static bool compareVersion (QString oldVersion, QString newVersion)
 Compares the versions.
static int getNbLines (QString path)
 Counts and returns the number of lines in the file path.
static void createBackup (QString path)
 Creates a backup of the file path.
static bool compareVersion (QString oldVersion, QString newVersion)
 Compares the versions.
static int getNbLines (QString path)
 Counts and returns the number of lines in the file path.
static void createBackup (QString path)
 Creates a backup of the file path.


Detailed Description

Author:
Lynn Hazan


Member Function Documentation

static bool Utilities::compareVersion ( QString  oldVersion,
QString  newVersion 
) [inline, static]

Compares the versions.

Parameters:
oldVersion the old version
newVersion the new version
Returns:
true if newVersion is superior to oldVersion, false otherwise.

int Utilities::getNbLines ( QString  path  )  [static]

Counts and returns the number of lines in the file path.

Parameters:
path file path.
Returns:
the number of lines in the file.

void Utilities::createBackup ( QString  path  )  [static]

Creates a backup of the file path.

The backup file name is the original file name with an additional ~.

Parameters:
path file path.

static bool Utilities::compareVersion ( QString  oldVersion,
QString  newVersion 
) [inline, static]

Compares the versions.

Parameters:
oldVersion the old version
newVersion the new version
Returns:
true if newVersion is superior to oldVersion, false otherwise.

static int Utilities::getNbLines ( QString  path  )  [static]

Counts and returns the number of lines in the file path.

Parameters:
path file path.
Returns:
the number of lines in the file.

static void Utilities::createBackup ( QString  path  )  [static]

Creates a backup of the file path.

The backup file name is the original file name with an additional ~.

Parameters:
path file path.


The documentation for this class was generated from the following files:
Generated on Mon Sep 17 20:47:35 2007 for NeuroScope by  doxygen 1.5.1