ATLAS Offline Software
Loading...
Searching...
No Matches
AthXRT Namespace Reference

Classes

class  DeviceMgmtSvc
 Service used for programming XRT compatible accelerators. More...
class  IDeviceMgmtSvc
 Interface for AthXRT::DeviceMgmtSvc service. More...
class  StateHandler
 Base class to provide common infrastructure for handling multiprocess state transitions for FPGA. More...

Functions

static std::string getPrefixUpToNthOccurrence (const std::string &str, char token, int n)
 Get substring up to the nth occurrence of a token.

Function Documentation

◆ getPrefixUpToNthOccurrence()

std::string AthXRT::getPrefixUpToNthOccurrence ( const std::string & str,
char token,
int n )
static

Get substring up to the nth occurrence of a token.

Parameters
strThe string to process.
tokenThe token to search for.
nThe number of occurence to search for.
Returns
The substring up to and including the nth occurrence of the token. If the token is not found n times, the whole string is returned.

Definition at line 212 of file DeviceMgmtSvc.cxx.