mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3541 HoloLens : Create dummy file backed feature
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicHoloLensSession::RicHoloLensSession()
|
||||
: m_isSessionValid(false)
|
||||
, m_isDummySession(false)
|
||||
, m_isIsFileBackedSessionValid(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ bool RicHoloLensSession::createDummyFileBackedSession()
|
||||
return false;
|
||||
}
|
||||
|
||||
m_isDummySession = true;
|
||||
m_isIsFileBackedSessionValid = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -82,11 +82,19 @@ bool RicHoloLensSession::createDummyFileBackedSession()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicHoloLensSession::isSessionValid() const
|
||||
{
|
||||
if (m_isDummySession) return true;
|
||||
if (m_isIsFileBackedSessionValid) return true;
|
||||
|
||||
return m_isSessionValid;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicHoloLensSession::isFileBackedSessionValid() const
|
||||
{
|
||||
return m_isIsFileBackedSessionValid;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -104,7 +112,7 @@ void RicHoloLensSession::terminateSession()
|
||||
|
||||
RiaLogging::info("Terminating HoloLens Session");
|
||||
|
||||
m_isDummySession = false;
|
||||
m_isIsFileBackedSessionValid = false;
|
||||
m_isSessionValid = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user