Version: 8.3.0
SALOME_ResourcesCatalog_Handler Class Reference

#include <SALOME_ResourcesCatalog_Handler.hxx>

Public Member Functions

 SALOME_ResourcesCatalog_Handler (MapOfParserResourcesType &resources_list)
 Constructor. More...
 
const MapOfParserResourcesTypeGetResourcesAfterParsing () const
 Retrieves DS after the file parse. More...
 
virtual ~SALOME_ResourcesCatalog_Handler ()
 Destructor. More...
 
void ProcessXmlDocument (xmlDocPtr theDoc)
 Processes XML document and fills the list of resources. More...
 
bool ProcessMachine (xmlNodePtr machine_descr, ParserResourcesType &resource)
 
bool ProcessCluster (xmlNodePtr cluster_descr, ParserResourcesType &resource)
 
bool ProcessMember (xmlNodePtr member_descr, ParserResourcesType &resource)
 
void PrepareDocToXmlFile (xmlDocPtr theDoc)
 Fill the document tree in xml file, used to write in an xml file. More...
 

Private Attributes

std::string previous_component_name
 
MapOfParserResourcesType_resources_list
 
const chartest_machine
 
const chartest_cluster
 
const chartest_name
 
const chartest_hostname
 
const chartest_type
 
const chartest_protocol
 
const chartest_cluster_internal_protocol
 
const chartest_batch
 
const chartest_mpi
 
const chartest_user_name
 
const chartest_appli_path
 
const chartest_can_launch_batch_jobs
 
const chartest_can_run_containers
 
const chartest_modules
 
const chartest_module_name
 
const chartest_components
 
const chartest_component_name
 
const chartest_os
 
const chartest_mem_in_mb
 
const chartest_cpu_freq_mhz
 
const chartest_nb_of_nodes
 
const chartest_nb_of_proc
 
const chartest_nb_of_proc_per_node
 
const chartest_batch_queue
 
const chartest_user_commands
 
const chartest_use
 
const chartest_members
 
const chartest_working_directory
 
const chartest_mode
 
const chartest_is_cluster_head
 

Constructor & Destructor Documentation

SALOME_ResourcesCatalog_Handler::~SALOME_ResourcesCatalog_Handler ( )
virtual

Destructor.

Member Function Documentation

const MapOfParserResourcesType & SALOME_ResourcesCatalog_Handler::GetResourcesAfterParsing ( ) const

Retrieves DS after the file parse.

References _resources_list.

bool SALOME_ResourcesCatalog_Handler::ProcessMachine ( xmlNodePtr  machine_descr,
ParserResourcesType resource 
)

References ResourceDataToSort::_CPUFreqMHz, ResourceDataToSort::_memInMB, ResourceDataToSort::_Name, ResourceDataToSort::_nbOfNodes, ResourceDataToSort::_nbOfProcPerNode, ParserResourcesType::AppliPath, ParserResourcesType::batchQueue, ParserResourcesType::can_launch_batch_jobs, ParserResourcesType::can_run_containers, cluster, ParserResourcesType::ClusterInternalProtocol, ParserResourcesType::ComponentsList, ParserResourcesType::DataForSort, ParserResourcesType::getAccessProtocolTypeStr(), ParserResourcesType::getBatchTypeStr(), ParserResourcesType::getCanLaunchBatchJobsStr(), ParserResourcesType::getCanRunContainersStr(), ParserResourcesType::getClusterInternalProtocolStr(), ParserResourcesType::getMpiImplTypeStr(), ParserResourcesType::getResourceTypeStr(), ParserResourcesType::HostName, ParserResourcesType::ModulesList, ParserResourcesType::Name, ParserResourcesType::OS, ParserResourcesType::Protocol, ParserResourcesType::setAccessProtocolTypeStr(), ParserResourcesType::setBatchTypeStr(), ParserResourcesType::setCanLaunchBatchJobsStr(), ParserResourcesType::setCanRunContainersStr(), ParserResourcesType::setClusterInternalProtocolStr(), ParserResourcesType::setMpiImplTypeStr(), ParserResourcesType::setResourceTypeStr(), single_machine, test_appli_path, test_batch, test_batch_queue, test_can_launch_batch_jobs, test_can_run_containers, test_cluster_internal_protocol, test_component_name, test_components, test_cpu_freq_mhz, test_hostname, test_is_cluster_head, test_mem_in_mb, test_mode, test_module_name, test_modules, test_mpi, test_name, test_nb_of_nodes, test_nb_of_proc_per_node, test_os, test_protocol, test_type, test_user_commands, test_user_name, test_working_directory, ParserResourcesType::type, ParserResourcesType::userCommands, ParserResourcesType::UserName, and ParserResourcesType::working_directory.

Referenced by ProcessXmlDocument().

void SALOME_ResourcesCatalog_Handler::ProcessXmlDocument ( xmlDocPtr  theDoc)

Field Documentation

MapOfParserResourcesType& SALOME_ResourcesCatalog_Handler::_resources_list
private
std::string SALOME_ResourcesCatalog_Handler::previous_component_name
private
const char* SALOME_ResourcesCatalog_Handler::test_appli_path
private
const char* SALOME_ResourcesCatalog_Handler::test_batch
private
const char* SALOME_ResourcesCatalog_Handler::test_batch_queue
private
const char* SALOME_ResourcesCatalog_Handler::test_can_launch_batch_jobs
private
const char* SALOME_ResourcesCatalog_Handler::test_can_run_containers
private
const char* SALOME_ResourcesCatalog_Handler::test_cluster
private
const char* SALOME_ResourcesCatalog_Handler::test_cluster_internal_protocol
private
const char* SALOME_ResourcesCatalog_Handler::test_component_name
private
const char* SALOME_ResourcesCatalog_Handler::test_components
private
const char* SALOME_ResourcesCatalog_Handler::test_cpu_freq_mhz
private
const char* SALOME_ResourcesCatalog_Handler::test_hostname
private
const char* SALOME_ResourcesCatalog_Handler::test_is_cluster_head
private
const char* SALOME_ResourcesCatalog_Handler::test_machine
private
const char* SALOME_ResourcesCatalog_Handler::test_mem_in_mb
private
const char* SALOME_ResourcesCatalog_Handler::test_members
private
const char* SALOME_ResourcesCatalog_Handler::test_mode
private
const char* SALOME_ResourcesCatalog_Handler::test_module_name
private
const char* SALOME_ResourcesCatalog_Handler::test_modules
private
const char* SALOME_ResourcesCatalog_Handler::test_mpi
private
const char* SALOME_ResourcesCatalog_Handler::test_name
private
const char* SALOME_ResourcesCatalog_Handler::test_nb_of_nodes
private
const char* SALOME_ResourcesCatalog_Handler::test_nb_of_proc
private
const char* SALOME_ResourcesCatalog_Handler::test_nb_of_proc_per_node
private
const char* SALOME_ResourcesCatalog_Handler::test_os
private
const char* SALOME_ResourcesCatalog_Handler::test_protocol
private
const char* SALOME_ResourcesCatalog_Handler::test_type
private
const char* SALOME_ResourcesCatalog_Handler::test_use
private
const char* SALOME_ResourcesCatalog_Handler::test_user_commands
private
const char* SALOME_ResourcesCatalog_Handler::test_user_name
private
const char* SALOME_ResourcesCatalog_Handler::test_working_directory
private