//
// LDASTools frameCPP - A library implementing the LIGO/Virgo frame
// specification
//
// Copyright (C) 2025 California Institute of Technology
//
// LDASTools frameCPP is free software; you may redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 (GPLv2) of the
// License or at your discretion, any later version.
//
// LDASTools frameCPP is distributed in the hope that it will be useful, but
// without any warranty or even the implied warranty of merchantability
// or fitness for a particular purpose. See the GNU General Public
// License (GPLv2) for more details.
//
// Neither the names of the California Institute of Technology (Caltech),
// The Massachusetts Institute of Technology (M.I.T), The Laser
// Interferometer Gravitational-Wave Observatory (LIGO), nor the names
// of its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// You should have received a copy of the licensing terms for this
// software included in the file LICENSE located in the top-level
// directory of this package. If you did not, you can view a copy at
// http://dcc.ligo.org/M1500244/LICENSE
//

// This file exists to satisfy the build system requirements.
// DebugArchive is a header-only implementation with all methods
// defined inline in DebugArchive.hh

#include "framecpp/archive/DebugArchive/DebugArchive.hh"
#include "framecpp/Common/FrameCPPServices.hh"

// Static member definitions
namespace FrameCPP {
    namespace Archive {
        // Define static member for WalkingDebugArchive
        SimpleLogger* WalkingDebugArchive::m_static_logger = nullptr;
        
        // Method implementation for WalkingDebugArchive
        SimpleLogger* WalkingDebugArchive::logger(const FrameCPP::Common::FrameCPPServices& services)
        {
            if (!m_static_logger) {
                m_static_logger = services.getLogger("framecpp.archive.walking");
            }
            return m_static_logger;
        }
    }
}

// Force instantiation of the archive registration
namespace {
    // This ensures the archive is properly registered with boost::serialization
    struct force_debugarchive_registration {
        force_debugarchive_registration() {
            // The BOOST_SERIALIZATION_REGISTER_ARCHIVE macro in the header
            // handles the actual registration
        }
    } debugarchive_registration_instance;
}