Rename: senseDeviceSpecs => deviceAttachmentSpecs
This commit is contained in:
@@ -88,7 +88,7 @@ interoceptor_spec:
|
||||
|
||||
spec->sensorType = $1;
|
||||
smo::device::DeviceManager::interoceptorDeviceSpecs.push_back(spec);
|
||||
smo::device::DeviceManager::senseDeviceSpecs.push_back(spec);
|
||||
smo::device::DeviceManager::deviceAttachmentSpecs.push_back(spec);
|
||||
|
||||
delete $3;
|
||||
}
|
||||
@@ -101,7 +101,7 @@ extrospector_spec:
|
||||
|
||||
spec->sensorType = $1;
|
||||
smo::device::DeviceManager::extrospectorDeviceSpecs.push_back(spec);
|
||||
smo::device::DeviceManager::senseDeviceSpecs.push_back(spec);
|
||||
smo::device::DeviceManager::deviceAttachmentSpecs.push_back(spec);
|
||||
|
||||
delete $3;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ std::vector<std::shared_ptr<InteroceptorDevAttachmentSpec>>
|
||||
std::vector<std::shared_ptr<ExtrospectorDevAttachmentSpec>>
|
||||
DeviceManager::extrospectorDeviceSpecs;
|
||||
std::vector<std::shared_ptr<DeviceAttachmentSpec>>
|
||||
DeviceManager::senseDeviceSpecs;
|
||||
DeviceManager::deviceAttachmentSpecs;
|
||||
|
||||
const std::string DeviceManager::stringifyDeviceSpecs(void)
|
||||
{
|
||||
|
||||
@@ -24,6 +24,7 @@ public:
|
||||
std::string readDapSpecFile(const std::string& filename);
|
||||
void collateAllDapSpecs(void);
|
||||
void parseAllDapSpecs(void);
|
||||
|
||||
static const std::string stringifyDeviceSpecs(void);
|
||||
|
||||
private:
|
||||
@@ -39,7 +40,7 @@ public:
|
||||
static std::vector<std::shared_ptr<ExtrospectorDevAttachmentSpec>>
|
||||
extrospectorDeviceSpecs;
|
||||
static std::vector<std::shared_ptr<DeviceAttachmentSpec>>
|
||||
senseDeviceSpecs;
|
||||
deviceAttachmentSpecs;
|
||||
};
|
||||
|
||||
} // namespace device
|
||||
|
||||
@@ -275,14 +275,14 @@ void SenseApiManager::detachSenseDevice(
|
||||
|
||||
void SenseApiManager::attachAllSenseDevicesFromSpecs(void)
|
||||
{
|
||||
for (const auto& spec : device::DeviceManager::senseDeviceSpecs) {
|
||||
for (const auto& spec : device::DeviceManager::deviceAttachmentSpecs) {
|
||||
attachSenseDevice(spec);
|
||||
}
|
||||
}
|
||||
|
||||
void SenseApiManager::detachAllSenseDevices(void)
|
||||
{
|
||||
for (const auto& spec : device::DeviceManager::senseDeviceSpecs) {
|
||||
for (const auto& spec : device::DeviceManager::deviceAttachmentSpecs) {
|
||||
detachSenseDevice(spec);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user