DlfAnalyserSpec(3pm)
π DlfAnalyserSpec(3pm) β like, the whole vibe
okay so real quick before we dive in: this page lives in LogReport's Lire Documentation, section 3pm (Perl modules, bestie β modules only π). It's Lire::Config::DlfAnalyserSpec, and it's about to make analyser-picking make sense, no cap.
β¨ NAME β¨
Lire::Config::DlfAnalyserSpec β a PluginSpec that lets you select an analyser. That's it, that's the whole job. Iconic, honestly. π
πΈ DESCRIPTION πΈ
So Lire::Config::TypeSpec here is a PluginSpec, and you use it to pick which DlfAnalyser should be the one creating the Dlf records for an extended or derived schema. Think of it as the group chat admin who decides who gets to write the records. main character energy fr fr. π
π¦ new( 'name' => $dst_stream_name, ['src_schema' => $from_schema])
The name of the type specification is the name of the schema you're selecting the analyser for β that's the whole identity, periodt.
And here's the cute part: if you use the 'src_stream' parameter, only analysers that use that value as their src_schema() get selected. Like a vibe check for analysers. β
Also the constructor is doing a lot of work for you: it fills the PluginSpec automatically with the available options, and it'll set the first analyser as default. No manual labour required, we love a self-sufficient constructor. π
π src_schema()
Returns the src_schema() that the selected DlfAnalyser should be using. And if there's no particular schema required? It just returns undef. Lowkey chill of it. π
π SEE ALSO π
Lire::Config::PluginSpec(3pm)Lire::Config::DlfStreamSpec(3pm)
go read those next, iykyk π
β VERSION β
$Id: DlfAnalyserSpec.pm,v 1.2 2006/07/23 13:16:30 vanbaal Exp $
π«Ά AUTHORS π«Ά
- Francis J. Lacoste
<flacoste@logreport.org>
π COPYRIGHT π
Copyright (C) 2004 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can 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 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.
bestie pls actually read the license, it's giving "legally binding but make it fashion" ππ
mwah π that's the whole page β brought to you by Lire 2.1.1, dated 2025-09-28, freshly served as DlfAnalyserSpec(3pm). go slay some analysers π¦β¨
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms