//..............................................................................
//
// Ninja document model - sessions
//

import "doc_Plugin.jnc"

namespace doc {

//! \addtogroup api-doc
//! @{

//..............................................................................

class Session: Plugin
{
	char const* autoget property m_title;
	bool autoget property m_isTransmitEnabled;

	construct(PluginHost* host)
	{
		basetype.construct(host);
	}

	override size_t errorcode transmit(
		void const* p,
		size_t size
		)
	{
		return size;
	}

	startSession()
	{
		uint64_t timestamp = sys.getPreciseTimestamp();
		m_pluginHost.m_log.m_baseTimestamp = timestamp;
		m_logWriter.write(timestamp, log.StdRecordCode.SessionStarted);
	}
}

//..............................................................................

//! @}

} // namespace doc
