Version: 9.12.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 char * test_machine
 
const char * test_cluster
 
const char * test_name
 
const char * test_hostname
 
const char * test_type
 
const char * test_protocol
 
const char * test_cluster_internal_protocol
 
const char * test_batch
 
const char * test_mpi
 
const char * test_user_name
 
const char * test_appli_path
 
const char * test_can_launch_batch_jobs
 
const char * test_can_run_containers
 
const char * test_modules
 
const char * test_module_name
 
const char * test_components
 
const char * test_component_name
 
const char * test_os
 
const char * test_mem_in_mb
 
const char * test_cpu_freq_mhz
 
const char * test_nb_of_nodes
 
const char * test_nb_of_proc
 
const char * test_nb_of_proc_per_node
 
const char * test_batch_queue
 
const char * test_user_commands
 
const char * test_use
 
const char * test_members
 
const char * test_working_directory
 
const char * test_mode
 
const char * test_is_cluster_head
 

Constructor & Destructor Documentation

◆ SALOME_ResourcesCatalog_Handler()

◆ ~SALOME_ResourcesCatalog_Handler()

SALOME_ResourcesCatalog_Handler::~SALOME_ResourcesCatalog_Handler ( )
virtual

Destructor.

Member Function Documentation

◆ GetResourcesAfterParsing()

const MapOfParserResourcesType & SALOME_ResourcesCatalog_Handler::GetResourcesAfterParsing ( ) const

Retrieves DS after the file parse.

References _resources_list.

◆ PrepareDocToXmlFile()

◆ ProcessCluster()

◆ ProcessMachine()

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(), test::hostname, ParserResourcesType::HostName, MESSAGE, ParserResourcesType::ModulesList, pythfilter::name, 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().

◆ ProcessMember()

◆ ProcessXmlDocument()

void SALOME_ResourcesCatalog_Handler::ProcessXmlDocument ( xmlDocPtr  theDoc)

Field Documentation

◆ _resources_list

MapOfParserResourcesType& SALOME_ResourcesCatalog_Handler::_resources_list
private

◆ previous_component_name

std::string SALOME_ResourcesCatalog_Handler::previous_component_name
private

◆ test_appli_path

const char* SALOME_ResourcesCatalog_Handler::test_appli_path
private

◆ test_batch

const char* SALOME_ResourcesCatalog_Handler::test_batch
private

◆ test_batch_queue

const char* SALOME_ResourcesCatalog_Handler::test_batch_queue
private

◆ test_can_launch_batch_jobs

const char* SALOME_ResourcesCatalog_Handler::test_can_launch_batch_jobs
private

◆ test_can_run_containers

const char* SALOME_ResourcesCatalog_Handler::test_can_run_containers
private

◆ test_cluster

const char* SALOME_ResourcesCatalog_Handler::test_cluster
private

◆ test_cluster_internal_protocol

const char* SALOME_ResourcesCatalog_Handler::test_cluster_internal_protocol
private

◆ test_component_name

const char* SALOME_ResourcesCatalog_Handler::test_component_name
private

◆ test_components

const char* SALOME_ResourcesCatalog_Handler::test_components
private

◆ test_cpu_freq_mhz

const char* SALOME_ResourcesCatalog_Handler::test_cpu_freq_mhz
private

◆ test_hostname

const char* SALOME_ResourcesCatalog_Handler::test_hostname
private

◆ test_is_cluster_head

const char* SALOME_ResourcesCatalog_Handler::test_is_cluster_head
private

◆ test_machine

const char* SALOME_ResourcesCatalog_Handler::test_machine
private

◆ test_mem_in_mb

const char* SALOME_ResourcesCatalog_Handler::test_mem_in_mb
private

◆ test_members

const char* SALOME_ResourcesCatalog_Handler::test_members
private

◆ test_mode

const char* SALOME_ResourcesCatalog_Handler::test_mode
private

◆ test_module_name

const char* SALOME_ResourcesCatalog_Handler::test_module_name
private

◆ test_modules

const char* SALOME_ResourcesCatalog_Handler::test_modules
private

◆ test_mpi

const char* SALOME_ResourcesCatalog_Handler::test_mpi
private

◆ test_name

const char* SALOME_ResourcesCatalog_Handler::test_name
private

◆ test_nb_of_nodes

const char* SALOME_ResourcesCatalog_Handler::test_nb_of_nodes
private

◆ test_nb_of_proc

const char* SALOME_ResourcesCatalog_Handler::test_nb_of_proc
private

◆ test_nb_of_proc_per_node

const char* SALOME_ResourcesCatalog_Handler::test_nb_of_proc_per_node
private

◆ test_os

const char* SALOME_ResourcesCatalog_Handler::test_os
private

◆ test_protocol

const char* SALOME_ResourcesCatalog_Handler::test_protocol
private

◆ test_type

const char* SALOME_ResourcesCatalog_Handler::test_type
private

◆ test_use

const char* SALOME_ResourcesCatalog_Handler::test_use
private

◆ test_user_commands

const char* SALOME_ResourcesCatalog_Handler::test_user_commands
private

◆ test_user_name

const char* SALOME_ResourcesCatalog_Handler::test_user_name
private

◆ test_working_directory

const char* SALOME_ResourcesCatalog_Handler::test_working_directory
private