Skip to content

Commit

Permalink
Update plugin manager function signatures for LINK_WITH_PYTHON=OFF bu…
Browse files Browse the repository at this point in the history
…ilds
  • Loading branch information
Myoldmopar committed Jul 24, 2024
1 parent 239316c commit a7102f1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/EnergyPlus/PluginManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ std::string pythonStringForUsage(const EnergyPlusData &state)
return "Linked to Python Version: \"" + sVersion + "\"";
}
#else
std::string pythonStringForUsage([[maybe_unused]] EnergyPlusData &state)
std::string pythonStringForUsage([[maybe_unused]] const EnergyPlusData &state)
{
return "This version of EnergyPlus not linked to Python library.";
}
Expand Down Expand Up @@ -1213,7 +1213,7 @@ void PluginManager::addGlobalVariable(const EnergyPlusData &state, const std::st
this->maxGlobalVariableIndex++;
}
#else
void PluginManager::addGlobalVariable([[maybe_unused]] EnergyPlusData &state, [[maybe_unused]] const std::string &name)
void PluginManager::addGlobalVariable([[maybe_unused]] const EnergyPlusData &state, [[maybe_unused]] const std::string &name)
{
}
#endif
Expand Down Expand Up @@ -1260,7 +1260,7 @@ int PluginManager::getTrendVariableHandle(const EnergyPlusData &state, const std
return -1;
}
#else
int PluginManager::getTrendVariableHandle([[maybe_unused]] EnergyPlusData &state, [[maybe_unused]] const std::string &name)
int PluginManager::getTrendVariableHandle([[maybe_unused]] const EnergyPlusData &state, [[maybe_unused]] const std::string &name)
{
return -1;
}
Expand All @@ -1272,7 +1272,7 @@ Real64 PluginManager::getTrendVariableValue(const EnergyPlusData &state, int han
return state.dataPluginManager->trends[handle].values[timeIndex];
}
#else
Real64 PluginManager::getTrendVariableValue([[maybe_unused]] EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int timeIndex)
Real64 PluginManager::getTrendVariableValue([[maybe_unused]] const EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int timeIndex)
{
return 0.0;
}
Expand All @@ -1288,7 +1288,7 @@ Real64 PluginManager::getTrendVariableAverage(const EnergyPlusData &state, int h
return sum / count;
}
#else
Real64 PluginManager::getTrendVariableAverage([[maybe_unused]] EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int count)
Real64 PluginManager::getTrendVariableAverage([[maybe_unused]] const EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int count)
{
return 0.0;
}
Expand All @@ -1306,7 +1306,7 @@ Real64 PluginManager::getTrendVariableMin(const EnergyPlusData &state, int handl
return minimumValue;
}
#else
Real64 PluginManager::getTrendVariableMin([[maybe_unused]] EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int count)
Real64 PluginManager::getTrendVariableMin([[maybe_unused]] const EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int count)
{
return 0.0;
}
Expand All @@ -1324,7 +1324,7 @@ Real64 PluginManager::getTrendVariableMax(const EnergyPlusData &state, int handl
return maximumValue;
}
#else
Real64 PluginManager::getTrendVariableMax([[maybe_unused]] EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int count)
Real64 PluginManager::getTrendVariableMax([[maybe_unused]] const EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int count)
{
return 0.0;
}
Expand All @@ -1340,7 +1340,7 @@ Real64 PluginManager::getTrendVariableSum(const EnergyPlusData &state, int handl
return sum;
}
#else
Real64 PluginManager::getTrendVariableSum([[maybe_unused]] EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int count)
Real64 PluginManager::getTrendVariableSum([[maybe_unused]] const EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int count)
{
return 0.0;
}
Expand All @@ -1365,7 +1365,7 @@ Real64 PluginManager::getTrendVariableDirection(const EnergyPlusData &state, int
return numerator / denominator;
}
#else
Real64 PluginManager::getTrendVariableDirection([[maybe_unused]] EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int count)
Real64 PluginManager::getTrendVariableDirection([[maybe_unused]] const EnergyPlusData &state, [[maybe_unused]] int handle, [[maybe_unused]] int count)
{
return 0.0;
}
Expand All @@ -1377,7 +1377,7 @@ size_t PluginManager::getTrendVariableHistorySize(const EnergyPlusData &state, i
return state.dataPluginManager->trends[handle].values.size();
}
#else
size_t PluginManager::getTrendVariableHistorySize([[maybe_unused]] EnergyPlusData &state, [[maybe_unused]] int handle)
size_t PluginManager::getTrendVariableHistorySize([[maybe_unused]] const EnergyPlusData &state, [[maybe_unused]] int handle)
{
return 0;
}
Expand Down Expand Up @@ -1452,7 +1452,7 @@ int PluginManager::getLocationOfUserDefinedPlugin(const EnergyPlusData &state, s
return -1;
}
#else
int PluginManager::getLocationOfUserDefinedPlugin([[maybe_unused]] EnergyPlusData &state, [[maybe_unused]] std::string const &_programName)
int PluginManager::getLocationOfUserDefinedPlugin([[maybe_unused]] const EnergyPlusData &state, [[maybe_unused]] std::string const &_programName)
{
return -1;
}
Expand Down

5 comments on commit a7102f1

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ErrorHandling (Myoldmopar) - x86_64-MacOS-10.18-clang-15.0.0: OK (3644 of 3644 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ErrorHandling (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (3685 of 3685 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ErrorHandling (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-Debug: OK (795 of 795 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ErrorHandling (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-Debug: OK (2060 of 2060 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ErrorHandling (Myoldmopar) - Win64-Windows-10-VisualStudio-16: OK (2852 of 2852 tests passed, 0 test warnings)

Build Badge Test Badge

Please sign in to comment.