MipResources::ResourceUtilities Class Reference

utility functions for Resources More...

#include <Resource.h>

List of all members.

Static Public Member Functions

static ResourceresFromPlate (ResourcePointers &resources, ResourcePlate plate)
 search for the first resource with a plate in a vector of resource pointers
static ResourcemacroResFromPlate (ResourcePointers resources, ResourcePlate initPlate, ResourcePlate endPlate)
 search for the first resource belonging to a range of plates in a vector of resource pointers
static void getPlatesFromFile (string fileName, ResourcePlates &plates)
 retrives a vector of plates from a file
static void getPlatesFromWords (vector< string > &words, ResourcePlates &plates)
 retrives a vector of plates from a vector of strings
static void getPluginsFromFile (string fileName, vector< string > &names, vector< string > &libraries)
 retrives a vector of plugin names and library names from file
static void getPluginsFromWords (vector< string > &words, vector< string > &names, vector< string > &libraries)
 retrives a vector of plates from a vector of strings


Detailed Description

utility functions for Resources

Member Function Documentation

static Resource* MipResources::ResourceUtilities::resFromPlate ( ResourcePointers resources,
ResourcePlate  plate 
) [inline, static]

search for the first resource with a plate in a vector of resource pointers

Returns:
if success pointer to the resource, if fail 0
Parameters:
resources ResourcePointers in which search
plate ResourcePlate to search

static Resource* MipResources::ResourceUtilities::macroResFromPlate ( ResourcePointers  resources,
ResourcePlate  initPlate,
ResourcePlate  endPlate 
) [inline, static]

search for the first resource belonging to a range of plates in a vector of resource pointers

Returns:
if success pointer to the resource, if fail 0
Parameters:
resources ResourcePointers in which search
initPlate MacroResourcePlate init
endPlate MacroResourcePlate end

static void MipResources::ResourceUtilities::getPlatesFromFile ( string  fileName,
ResourcePlates plates 
) [inline, static]

retrives a vector of plates from a file

Parameters:
fileName file name
plates returned vector of strings, it is cleared before

static void MipResources::ResourceUtilities::getPlatesFromWords ( vector< string > &  words,
ResourcePlates plates 
) [inline, static]

retrives a vector of plates from a vector of strings

Parameters:
words vector of strings
plates returned vector of strings, it is cleared before

static void MipResources::ResourceUtilities::getPluginsFromFile ( string  fileName,
vector< string > &  names,
vector< string > &  libraries 
) [inline, static]

retrives a vector of plugin names and library names from file

Parameters:
[in] filename Name of the fiile to open.
[out] &names Returned vector of strings containing the names of the plugin Resources. It is cleared before the use.
[out] &libraries Returned vector of strings containing the names of the libraries in which to look for the corresponding plugin Resources. It is cleared before the use.

static void MipResources::ResourceUtilities::getPluginsFromWords ( vector< string > &  words,
vector< string > &  names,
vector< string > &  libraries 
) [inline, static]

retrives a vector of plates from a vector of strings

Parameters:
words vector of strings
plates returned vector of strings, it is cleared before


The documentation for this class was generated from the following file:

Generated on Mon Feb 20 07:01:13 2017 for MIP by  doxygen 1.5.6