//! \brief constructor with source database and exporter interface
        public BMDatabaseExporter(BMDBSQLServer tDBServer, IBMDataLog tExportAgent)
        {
            m_DBServer      = tDBServer;
            m_DBServerAgent = tExportAgent;

            Initialize();
        }
Esempio n. 2
0
            //! \brief constructor
            public DatabaseExporter(BMDBSQLServer tParent)
            {
                m_Parent = tParent;

                if (null == m_Parent)
                {
                    return;
                }
                //! try to connect to database
                if (m_Parent.SamplingCount() < 0)
                {
                    return;
                }

                m_bAvailable = true;
            }