MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / getProfileFilepath

Method getProfileFilepath

src/OpenColorIO/SystemMonitor.cpp:103–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103const char * SystemMonitorsImpl::getProfileFilepath(size_t index) const
104{
105 if (index >= m_monitors.size())
106 {
107 std::ostringstream oss;
108 oss << "Invalid index for the monitor name " << index
109 << " where the number of monitors is " << m_monitors.size() << ".";
110 throw Exception(oss.str().c_str());
111 }
112
113 return m_monitors[index].m_ICCFilepath.c_str();
114}
115
116std::string SystemMonitorsImpl::GetICCProfileFromMonitorName(const char * monitorName)
117{

Callers 3

bindPySystemMonitorsFunction · 0.80
getProfileFilepathFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected