EasyCV  0.9.36
Easy! Computer Vision
Public Member Functions | Private Attributes | List of all members
cvac::SandboxManager Class Reference

#include <ServiceMan.h>

Public Member Functions

 SandboxManager (const std::string &CVAC_DataDir)
 
std::string createClientName (const std::string &serviceName, const std::string &connectionName)
 
std::string createTrainingDir (const std::string &clientName)
 
void deleteTrainingDir (const std::string &clientName)
 
std::string getTrainingDir (const std::string &clientName)
 
std::string createClientDir (const std::string &clientName)
 

Private Attributes

std::string mCVAC_DataDir
 
std::vector< ClientSandboxmSandboxes
 

Detailed Description

SandboxManager - Manage allocation of directory and file resources for Services.

Constructor & Destructor Documentation

SandboxManager::SandboxManager ( const std::string &  CVAC_DataDir)

Look and see what directories are there from the last time we where run and add them to the sandbox list. Clean up any training directories that failed to get cleaned up because of an exception or early stop.

Member Function Documentation

std::string SandboxManager::createClientDir ( const std::string &  clientName)

Create a client directory if this is the first time we have seen this client else return the existing client directory.

std::string SandboxManager::createClientName ( const std::string &  serviceName,
const std::string &  connectionName 
)

Request a client name. This name is based on the service name and the connection client name gotten from the service manager.

std::string SandboxManager::createTrainingDir ( const std::string &  clientName)

Create a training directory in the client directory. If the client directory does not exist then create it.

void SandboxManager::deleteTrainingDir ( const std::string &  clientName)

Delete the training directory.

std::string SandboxManager::getTrainingDir ( const std::string &  clientName)

Get the clients training directory

Member Data Documentation

std::string cvac::SandboxManager::mCVAC_DataDir
private
std::vector<ClientSandbox> cvac::SandboxManager::mSandboxes
private

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