1Alien::ProtoBuf::ConfigUDsaetra(C3o)ntributed Perl DocumAelniteant:i:oPnrotoBuf::ConfigData(3)
2
3
4

NAME

6       Alien::ProtoBuf::ConfigData - Configuration for Alien::ProtoBuf
7

SYNOPSIS

9         use Alien::ProtoBuf::ConfigData;
10         $value = Alien::ProtoBuf::ConfigData->config('foo');
11         $value = Alien::ProtoBuf::ConfigData->feature('bar');
12
13         @names = Alien::ProtoBuf::ConfigData->config_names;
14         @names = Alien::ProtoBuf::ConfigData->feature_names;
15
16         Alien::ProtoBuf::ConfigData->set_config(foo => $new_value);
17         Alien::ProtoBuf::ConfigData->set_feature(bar => $new_value);
18         Alien::ProtoBuf::ConfigData->write;  # Save changes
19

DESCRIPTION

21       This module holds the configuration data for the "Alien::ProtoBuf"
22       module.  It also provides a programmatic interface for getting or
23       setting that configuration data.  Note that in order to actually make
24       changes, you'll have to have write access to the
25       "Alien::ProtoBuf::ConfigData" module, and you should attempt to
26       understand the repercussions of your actions.
27

METHODS

29       config($name)
30           Given a string argument, returns the value of the configuration
31           item by that name, or "undef" if no such item exists.
32
33       feature($name)
34           Given a string argument, returns the value of the feature by that
35           name, or "undef" if no such feature exists.
36
37       set_config($name, $value)
38           Sets the configuration item with the given name to the given value.
39           The value may be any Perl scalar that will serialize correctly
40           using "Data::Dumper".  This includes references, objects (usually),
41           and complex data structures.  It probably does not include
42           transient things like filehandles or sockets.
43
44       set_feature($name, $value)
45           Sets the feature with the given name to the given boolean value.
46           The value will be converted to 0 or 1 automatically.
47
48       config_names()
49           Returns a list of all the names of config items currently defined
50           in "Alien::ProtoBuf::ConfigData", or in scalar context the number
51           of items.
52
53       feature_names()
54           Returns a list of all the names of features currently defined in
55           "Alien::ProtoBuf::ConfigData", or in scalar context the number of
56           features.
57
58       auto_feature_names()
59           Returns a list of all the names of features whose availability is
60           dynamically determined, or in scalar context the number of such
61           features.  Does not include such features that have later been set
62           to a fixed value.
63
64       write()
65           Commits any changes from "set_config()" and "set_feature()" to
66           disk.  Requires write access to the "Alien::ProtoBuf::ConfigData"
67           module.
68

AUTHOR

70       "Alien::ProtoBuf::ConfigData" was automatically created using
71       "Module::Build".  "Module::Build" was written by Ken Williams, but he
72       holds no authorship claim or copyright claim to the contents of
73       "Alien::ProtoBuf::ConfigData".
74
75
76
77perl v5.30.1                      2020-03-09    Alien::ProtoBuf::ConfigData(3)
Impressum