ADTF
Loading...
Searching...
No Matches
adtf::system::testing::giant::cTestResourceCopier Class Reference

Public Member Functions

 cTestResourceCopier (const std::string &strResources=ADTF_TESTING_MUTABLE_RESOURCES, const std::string &strTargetRootDirectory=ADTF_TESTING_BUILD_DIR)
 
 ~cTestResourceCopier ()
 
std::string GetResourceTargetDirectory () const
 

Protected Attributes

std::unique_ptr< cImplementation > m_pImplementation
 

Constructor & Destructor Documentation

◆ cTestResourceCopier()

adtf::system::testing::giant::cTestResourceCopier::cTestResourceCopier ( const std::string & strResources = ADTF_TESTING_MUTABLE_RESOURCES,
const std::string & strTargetRootDirectory = ADTF_TESTING_BUILD_DIR )

Constructor. Copies given test sources to output directory. Usually this should be the build folder!

Parameters
[in]strResourcesA ';' separated list of test resource directories and/or files. The listed input files will be copied to strTargetRootDirectory.
[in]strTargetRootDirectoryThe root directory where the listed inputs from strResources will be copied to. A unique folder name will be attached to the path (timestamp + pid).
Exceptions
tResultif an error occurred.

◆ ~cTestResourceCopier()

adtf::system::testing::giant::cTestResourceCopier::~cTestResourceCopier ( )

Destructor. Calling this will delete the created unique directory target passed within the Constructor!

Member Function Documentation

◆ GetResourceTargetDirectory()

std::string adtf::system::testing::giant::cTestResourceCopier::GetResourceTargetDirectory ( ) const

Returns the directory where the test resource files have been copied to.

Returns
A std::string object containing the path to the unique resources directory. Is empty if nothing has been copied.

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