NAME

Net::MQTT::TopicStore - Perl module to represent MQTT topic store

VERSION

version 1.142010

SYNOPSIS

use Net::MQTT::TopicStore;
my $topic_store = Net::MQTT::TopicStore->new();
$topic_store->add($topic_pattern1);
$topic_store->add($topic_pattern2);
my @topics = @{ $topic->get($topic) };
$topic_store->remove($topic_pattern2);

DESCRIPTION

This module encapsulates a single MQTT topic store.

METHODS

new( )

Constructs a Net::MQTT::TopicStore object.

add( $topic_pattern )

Adds the topic pattern to the store.

delete( $topic_pattern )

Remove the topic pattern from the store.

values( $topic )

Returns all the topic patterns in the store that apply to the given topic.

AUTHOR

Mark Hindess <soft-cpan@temporalanomaly.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Mark Hindess.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.