19 #ifndef TORC_COMMON_DEVICEDESIGNATOR_HPP
20 #define TORC_COMMON_DEVICEDESIGNATOR_HPP
22 #include <boost/regex.hpp>
62 bool parse(
const string& inDeviceDesignator,
const boost::regex& inRegEx);
104 #endif // TORC_COMMON_DEVICEDESIGNATOR_HPP
EFamily mFamily
The family type.
static boost::regex sArtix7RegEx
Regular expression for Artix7 devices.
Encapsulation of a device designator and its constituent elements.
string mDevicePackage
The device package.
static boost::regex sVirtexERegEx
Regular expression for VirtexE devices.
string mDeviceSpeedGrade
The device speed grade.
const EFamily & getFamily(void) const
Returns the device family.
static boost::regex sVirtex4RegEx
Regular expression for Virtex4 devices.
static boost::regex sSpartan6RegEx
Regular expression for Spartan3E devices.
static boost::regex sKintex7RegEx
Regular expression for Kintex7 devices.
bool parse(const string &inDeviceDesignator, const boost::regex &inRegEx)
Parses the device name into constituent device, package, and speed components.
string mDeviceDesignator
The full device designator.
static boost::regex sSpartan3RegEx
Regular expression for Spartan3 devices.
static boost::regex sVirtex6RegEx
Regular expression for Virtex6 devices.
static boost::regex sSpartan2RegEx
Regular expression for Spartan2 devices.
const string & getDeviceSpeedGrade(void) const
Returns the device speed grade.
static boost::regex sVirtexRegEx
Regular expression for Virtex devices.
static boost::regex sSpartan3ERegEx
Regular expression for Spartan3E devices.
static boost::regex sSpartan3ARegEx
Regular expression for Spartan3A devices.
static boost::regex sVirtex2PRegEx
Regular expression for Virtex2P devices.
static boost::regex sVirtex7RegEx
Regular expression for Virtex7 devices.
static boost::regex sVirtex5RegEx
Regular expression for Virtex5 devices.
const string & getDevicePackage(void) const
Returns the device package.
const string & getDeviceName(void) const
Returns the device name.
static boost::regex sZynq7000RegEx
Regular expression for Zynq7000 devices.
friend std::ostream & operator<<(std::ostream &os, const DeviceDesignator &rhs)
Stream insertion operator.
DeviceDesignator(const string &inDeviceDesignator)
Basic constructor.
static boost::regex sSpartan2ERegEx
Regular expression for Spartan2E devices.
std::string string
Imported type name.
const string & getDeviceDesignator(void) const
Returns the device designator.
static boost::regex sVirtex2RegEx
Regular expression for Virtex2 devices.
string mDeviceName
The device name.