ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



inspectorj::toolset::ProfileToolSet Class Reference

#include <profiletoolset.h>

List of all members.


Detailed Description

ProfileToolSet is a toolset for converting SessionProfiles to and from XML.

See also:
inspectorj::client::SessionProfile
Author:
James May

Definition at line 49 of file profiletoolset.h.

Public Member Functions

 ProfileToolSet ()
 ~ProfileToolSet ()

Static Public Member Functions

static bool loadProfile (SessionProfile &, char *fileName)
 Load a SessionProfile's state from an xml file.
static bool loadProfile (SessionProfile &, QString fileName)
 Convenience function that calls loadProfile( SessionProfile&, char*).
static bool saveProfile (SessionProfile &, QString fileDir)
 Save a sessionProfile.


Member Function Documentation

bool inspectorj::toolset::ProfileToolSet::loadProfile ( SessionProfile profile,
char *  fileName 
) [static]

Load a SessionProfile's state from an xml file.

Parameters:
profile reference to the SessionProfile to load
fileName the name of the xml file to parse
Returns:
true if the profile is successfully loaded

Definition at line 57 of file profiletoolset.cpp.

References inspectorj::client::ijConnection::host, inspectorj::client::ijConnection::port, inspectorj::client::SessionProfile::setApplicationArgs(), inspectorj::client::SessionProfile::setApplicationEntry(), inspectorj::client::SessionProfile::setClassFilters(), inspectorj::client::SessionProfile::setClassPath(), inspectorj::client::SessionProfile::setConnection(), inspectorj::client::SessionProfile::setExternalLaunch(), inspectorj::client::SessionProfile::setFileName(), inspectorj::client::SessionProfile::setJarFile(), inspectorj::client::SessionProfile::setJavaOptions(), inspectorj::client::SessionProfile::setJreHome(), inspectorj::client::SessionProfile::setName(), and inspectorj::client::SessionProfile::setTomcatApp().

Referenced by loadProfile(), and inspectorj::client::InspectorJ::loadProfiles().

bool inspectorj::toolset::ProfileToolSet::loadProfile ( SessionProfile ,
QString  fileName 
) [static]

Convenience function that calls loadProfile( SessionProfile&, char*).

Definition at line 47 of file profiletoolset.cpp.

References loadProfile().

bool inspectorj::toolset::ProfileToolSet::saveProfile ( SessionProfile profile,
QString  dir 
) [static]

Save a sessionProfile.

The profile can be loaded back into memory when the inspectorj client is restarted.

Parameters:
profile The reference to the profile to save
Returns:
true if the profile is successfully saved.

Definition at line 200 of file profiletoolset.cpp.

References inspectorj::client::SessionProfile::getApplicationArgs(), inspectorj::client::SessionProfile::getApplicationEntry(), inspectorj::client::SessionProfile::getClassFilters(), inspectorj::client::SessionProfile::getClassPath(), inspectorj::client::SessionProfile::getConnection(), inspectorj::client::SessionProfile::getFileName(), inspectorj::client::SessionProfile::getJavaOptions(), inspectorj::client::SessionProfile::getJreHome(), inspectorj::client::SessionProfile::getName(), inspectorj::client::SessionProfile::isExternalLaunch(), inspectorj::client::SessionProfile::isJarFile(), and inspectorj::client::SessionProfile::isTomcatApp().

Referenced by inspectorj::client::SessionProfileDialog::saveProfile().


The documentation for this class was generated from the following files:
Generated on Sun Aug 19 17:08:19 2007 for inspectorJ by  doxygen 1.5.1