Main > Free Download Search >

Free callbacks software for linux

callbacks

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 246
Tk::callbacks 804.027

Tk::callbacks 804.027


Tk::callbacks allows specifying code for Tk to call. more>>
Tk::callbacks allows specifying code for Tk to call.

SYNOPSIS

One can specify a callback in one of the following ways:

Without arguments:

... => ⊂name, ...
... => sub { ... }, ...
... => methodname, ...

or with arguments:

... => [ ⊂name ?, args ...? ], ...
... => [ sub { ... } ?, args...? ], ...
... => [ methodname ?, args...?], ...

Perl/Tk has a callback, where Tcl/Tk has a command string (i.e. a fragment of Tcl to be executed). A perl/Tk callback can take one of the following basic forms:

Reference to a subroutine ⊂name
Anonymous subroutine (closure) sub { ... }
A method name methodname

Any of these can be provided with arguments by enclosing them and the arguments in []. Here are some examples:

$mw->bind($class, " " => Delete);

This will call $widget->Delete, the $widget being provided (by bind) as the one where the Delete key was pressed.
While having bind provide a widget object for you is ideal in many cases it can be irritating in others. Using the list form this behaviour can be modified:

$a->bind(" ",[$b => Delete]);

because the first element $b is an object bind will call $b->Delete.

Note that method/object ordering only matters for bind callbacks, the auto-quoting in perl5.001 makes the first of these a little more readable:

$w->configure(-yscrollcommand => [ set => $ysb]);
$w->configure(-yscrollcommand => [ $ysb => set ]);

but both will call $ysb->set(args provided by Tk)
Another use of arguments allows you to write generalized methods which are easier to re-use:

$a->bind(" ",[Next,Page]);
$a->bind(" ",[Next,Line]);

This will call $a->Next(Page) or $a->Next(Line) respectively.

Note that the contents of the [] are evaluated by perl when the callback is created. It is often desirable for the arguments provided to the callback to depend on the details of the event which caused it to be executed. To allow for this callbacks can be nested using the Ev(...) "constructor". Ev(...) inserts callback objects into the argument list. When perl/Tk glue code is preparing the argument list for the callback it is about to call it spots these special objects and recursively applies the callback process to them.

EXAMPLES

$entry->bind( => [$w , validate, Ev([get])]);

$toplevel->bind(all, , [&unobscure, Ev(s)]);

$mw->bind($class, , [SetCursor, Ev(UpDownLine,1)]);

<<less
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
795 downloads
Callback 1.07

Callback 1.07


Callback is an object interface for function callbacks. more>>
Callback is an object interface for function callbacks.

SYNOPSIS

use Callback;

my $callback = new Callback (&myfunc, @myargs);
my $callback = new Callback ($myobj, $mymethod, @myargs);
my $callback = new Callback ($old_callback, @myargs);

$callback->call(@some_more_args);

Callback provides a standard interface to register callbacks. Those callbacks can be either purely functional (i.e. a function call with arguments) or object-oriented (a method call on an object).

When a callback is constructed, a base set of arguments can be provided. These function arguments will preceed any arguments added at the time the call is made.

There are two forms for the callback constructor, depending on whether the call is a pure functional call or a method call. The rule is that if the first argument is an object, then the second argument is a method name to be called on that object. Method resolution happens at the time the Callback object is built: an error will be raised if it cannot be found.

Callback objects built for object-oriented calls also have the property of being serializable via Storable. Purely functional callabacks cannot be serialized because CODE references are not supported by Storable.

Callback objects can be created from existing Callback objects. Any arguments will be appended onto the original list of arguments.

<<less
Download (0.004MB)
Added: 2007-05-23 License: Perl Artistic License Price:
668 downloads
Inline::Java::Callback 0.52

Inline::Java::Callback 0.52


Inline::Java::Callback is a callback into Perl from Java. more>>
Inline::Java::Callback is a callback into Perl from Java.

SYNOPSIS

use Inline Java =><<less
Download (0.092MB)
Added: 2007-06-04 License: Perl Artistic License Price:
872 downloads
Extended C++ Callback Library 0.0.6

Extended C++ Callback Library 0.0.6


Extended C++ Callback Library provides functors and delegates for up to ten parameters. more>>
Extended C++ Callback Library provides functors and delegates for up to ten parameters.
Some callback "containers" will make life easier in special cases. For example, with DelegateList, you are able to execute all callbacks with a single call.
Enhancements:
- added ReturnType Delegate1::operator()(Param1 val1)
- added void Delegate1::operator()()
- added void Delegate0::operator()()
<<less
Download (0.52MB)
Added: 2006-03-30 License: LGPL (GNU Lesser General Public License) Price:
1306 downloads
Channel 0.3 Beta

Channel 0.3 Beta


Channel is a generic/simple facility with the purpose of making message passing and event dispatching. more>>
Channel is a generic/simple facility with the purpose of making event dispatching and message passing as straightforward to use as data structures:
Channel is a template library, with its major components configurable as template parameters:
template
<
class Id_Type,
class Id_Trait = IdTrait ,
class SynchPolicy = ACE_MT_SYNCH,
class AllocPolicy,
class Router = MapRouter
>
class Channel
By replacing Id_Type, Id_Trait and Router with various concrete classes, Channel can support table/linear message routing, hierarchical routing and associative routing (Linda style) at the demand of user. The same way, we can use integer, string, POD structs or any class as message ids (provided that proper operations are defined with Id_Trait)
Channel provides complete publish/subscribe interface for channel members (peer threads in message passing and objects in event dispatching) to pub/sub message/event ids/types and send/receive messages/events
Channels are process local entities which can be "connected" to allow transparent distributed communication between members in different channels (Connectors based on tcp socket and unix domain socket are provided as samples)
Namespace control:
The ids published/subscribed by channel members constitute channels namespace.
Channel provides publish/subscribe scope control; When ids are published/subscribed, peers can specify desired scope (LOCAL, REMOTE, GLOBAL)
When 2 channels are connected, their namespaces are automatically "merged", which is transparent to both channel members and programmers. Members can communicate with members in remote channels the same way as with local members (by pub/sub ids).
Namespace merge/integration is controlled by:
Id scope specification
filters and translators defined at channel connections
Channel communication are peer-2-peer; there are no central daemons required for message passing.
Channel support both asynchronous message passing and synchronous event dispatching models.
Channel is built on top of
ACE (Adaptive Communication Environment) to gain platform independence.
Enhancements:
- The framework was ported to Windows XP with VC8.
- Dispatching policy was added as a Channel template parameter to support various dispatching algorithms.
- Broadcast and simple RoundRobin dispatching policies were implemented for testing.
- Callback was changed to functor style so that normal functions and functors can be directly used as callbacks.
<<less
Download (5.5MB)
Added: 2006-03-16 License: MIT/X Consortium License Price:
1318 downloads
X11Blocks 0.0.1

X11Blocks 0.0.1


X11Blocks package is an Objective-C Block oriented X Window System Toolkit. more>>
X11Blocks package is an Objective-C Block oriented X Window System Toolkit.

X11Blocks is a layer above "Xlib" (version 11) and provides functionality that is similar to the "Xt" (X Intrinsics) and Xaw widget libraries.

Whereas much of the X Intrinsics is dedicated to implementing a classing system in C, X11Blocks uses Objective-C (an extension of C) for this purpose.

X11Blocks makes extensive use of Objective-C "Blocks", where Blocks play a role similar to callbacks in the Intrinsics.

Objective-C Blocks, also known as Block closures or Action Expressions, are pieces of code represented by instances of an Objective-C class (called Block) for delayed evaluation.

For example, the action in a "MenuItem" object is a Block.

Blocks are useful for "event-based" programming and offer a significant advantage over "callbacks" in that Blocks can refer to and alter the context in which a Block was created.
<<less
Download (0.050MB)
Added: 2007-02-15 License: GPL (GNU General Public License) Price:
981 downloads
Trackballs 1.1.4

Trackballs 1.1.4


Trackballs is a simple game similar to the classic game Marble Madness. more>>
Trackballs is a FREE and simple game similar to the classic game Marble Madness.
By steering a marble through a track filled with vicious hammers, pools of acid, and other obstacles the player collects points.
When the ball reaches the destination, the player continue to the next, more difficult track - unless, of course, time runs out first.
Enhancements:
- This update includes new user contributed material (new songs and maps) as well as a number of new API functions and cleanups to make it easier and more flexible to design new levels.
- The built in map editor has some improvements (a few missing features have been added).
- Event callbacks on arbitrary animated objects and customizable score/time bonuses when killing arbitrary animated objects have been implemented.
- The documentation for the built-in scripting language has been rewritten.
<<less
Download (5.8MB)
Added: 2007-05-25 License: GPL (GNU General Public License) Price:
534 downloads
libcli 1.8.5

libcli 1.8.5


libcli is a Cisco-like telnet commandline library. more>>
libcli is a Cisco-like telnet commandline library.

It provides a shared library for including a Cisco-like command-line interface into other software. Its a telnet interface which supports command-line editing, history, authentication and callbacks for a user-definable function tree.

libcli provides support for using the arrow keys for command-line editing. Up and Down arrows will cycle through the command history, and Left & Right can be used for editing the current command line.

libcli also works out the shortest way of entering a command, so if you have a command "show users grep foobar" defined, you can enter "sh us g foobar" if that is the shortest possible way of doing it.


Installation:

To compile:

make
make install

This will install libcli.so into /usr/local/lib. If you want to change the location, edit Makefile.

There is a test application built called clitest. Run this and telnet to port 8000.

By default, a single username and password combination is enabled.

Username: fred
Password: nerk
<<less
Download (0.029MB)
Added: 2005-09-28 License: GPL (GNU General Public License) Price:
1487 downloads
XML_PullParser 1.3.2

XML_PullParser 1.3.2


XML_PullParser moves the API of the PHP XML facility from an event-based model to a token-based model. more>>
XML_PullParser moves the API of the PHP XML facility from an event-based model to a token-based model.
Instead of processing data as it is passed from the parser to callbacks, a script using PullParser requests "tokens" from XML_PullParser_getToken() and a number of helper functions.
Tokens are arrays representing XML structures, which become available in the order in which they appear in the document being parsed. Methods are provided both to get tokens and to extract their data.
Enhancements:
- Fixed a bug in XML_PullParser_getText and enhanced its functionality with addition of a new parameter which enables more control over return value when this function is passed an array or tokenized array to be searched for data.
- Its behavior should now be fully consistent with extensivley updated documentation for the method.
- Also, updated and clarified documentation of several other methods and functions.
<<less
Download (0.20MB)
Added: 2006-12-10 License: LGPL (GNU Lesser General Public License) Price:
1048 downloads
 
Other version of XML_PullParser
XML_PullParser 1.3.2 (Namespace)Instead of processing data as it is passed from the parser to callbacks, a script using PullParser requests "tokens" from XML_PullParser_getToken() and a number of helper functions. Tokens
License:GPL (GNU General Public License)
Download (0.22MB)
1045 downloads
Added: 2006-12-13
libsgml 1.1.4

libsgml 1.1.4


libsgml is a fast, lightweight state machine SGML parser capable of parsing HTML, XML. more>>
libsgml is a fast, lightweight state machine SGML parser capable of parsing HTML, XML, and most other markup languages in their most elementary forms.
libsgml library natively supports parsing HTML and XML documents into a tree format (DOM). All other markup languages may be parsed via a system of callbacks.
SUPPORTS:
libsgml supports the following features:
- HTML DOM parsing.
- Tag escaping
- Text, comment, and element stripping
- XML DOM parsing.
- Custom SGML parsing.
Enhancements:
- Bug fix in base 64 decoding that could lead to heap corruption.
<<less
Download (0.10MB)
Added: 2006-02-17 License: Freely Distributable Price:
1344 downloads
TclMilter 1.0

TclMilter 1.0


TclMilter is a package for Tcl that implements an interface to Sendmails Milter API. more>>
TclMilter is a package for Tcl (written in C) that implements an interface to SendMails Milter (Mail Filter) API for developing custom scripted message rewriting and spam filtering processes.
A thread-enabled Tcl build is required due to Milters threading requirements. However, you can only run, configure, or register callbacks for a milter from the first thread/interpreter the package is loaded into.
If you need to be able to stop the milter from within Tcl, you can load the package in another thread to do so. Only the "milter stop" command will function in secondary threads.
This extension is provided under the GNU General Public License (GPL) (see the file "license.terms" for details).
Main features:
- The smfi_opensocket command is not provided, only milter main as an interface to smfi_main.
- The smfi_setconn, smfi_settimeout, smfi_setbacklog and smfi_setdbg commands, as well as settings normally provided through smfi_main are instead provided as milter configure options.
- The smfi_register command is provided as milter register; however, unlike libmilter its possible to register and unregister callbacks at any time, rather than just once prior to calling main.
- There isnt a single data storage value for smfi_setpriv; rather, TclMilters milter setpriv command uses a hash table so you can set individual, custom variables with data to associate with a context.
- The context provided to callbacks is not simply a pointer, but is an actual Tcl command that can be used to interact with the context.
<<less
Download (0.11MB)
Added: 2005-06-27 License: GPL (GNU General Public License) Price:
1579 downloads
libgdamm 2.9.7

libgdamm 2.9.7


libgdamm is a set of C++ bindings for the libgda database API, using glibmm. more>>
libgdamm is a set of C++ bindings for the libgda database API, using glibmm.

About gtkmm:

gtkmm is the official C++ interface for the popular GUI library GTK+. Highlights include typesafe callbacks, widgets extensible via inheritance and a comprehensive set of widgets. You can create user interfaces either in code or with the Glade designer, using libglademm.

<<less
Download (0.40MB)
Added: 2007-06-15 License: LGPL (GNU Lesser General Public License) Price:
861 downloads
Libdnsres 0.1a

Libdnsres 0.1a


Libdnsres provides a non-blocking, thread-safe API for resolving DNS names. more>>
Libdnsres provides a non-blocking, thread-safe API for resolving DNS names. Libdnsres requires that your main application is built on top of libevent. The API essentially mirrors the traditional gethostbyname and getaddrinfo interfaces.

All return values have been replaced by callbacks instead. The code borrows heavily from the BSD resolver library. In fact, it is an extremely ugly hack to make the BSD resolver library non-blocking and thread-safe without changing the API too much.

Although it has not been tested heavily, it should compile on BSD systems and Linux. The library comes with a simple test program that can be use to verify if it works correctly.

<<less
Download (0.35MB)
Added: 2006-05-24 License: BSD License Price:
1249 downloads
PandaLex PDF Parser 0.5

PandaLex PDF Parser 0.5


PandaLex PDF Parser is a flex and bison parser for PDF documents. more>>
PandaLex is the PDF parsing code from Panda, which has been split into its own project to increase its utility.

It is a flex and bison description of the PDF specification, which allows programmers to define callbacks to handle different document elements.
<<less
Download (0.38MB)
Added: 2005-05-04 License: GPL (GNU General Public License) Price:
1639 downloads
Class::NiceApi 0.01.02

Class::NiceApi 0.01.02


Class::NiceApi is a Perl module that translates your methodNames to my method_names. more>>
Class::NiceApi is a Perl module that translates your methodNames to my method_names.

SYNOPSIS

use Class::NiceApi;

my $acl = Class::NiceApi->new( victim => Decision::ACL->new(), style => custom, table => { run_acl => RunACL } );

Perl method names should be written lowercased and multiple words should be connected via _. This is_good_coding_convention. Unfortunately this recommendation is ignored by many CPAN authors. Class::NiceApi helps pernickety programmers as me. It translates method names from isThisPerl to is_this_perl back and forth. Well, it so flexible it can translate allmost anything to anything. So it would translate perl_method_name to java programmers favorite perlMethodName.

METHODS

new()

Takes following parameters (which are also available as methods).

victim

An instance of a class where the method names subjected to translation.

style

A style is just a shortcut for the translation table. Following styles are currently supported: custom, with_underscore and to_lc.

[Note] They are implemented via a translating callback in $Class::NiceApi::callbacks. It filters the source method name and returns the destination name.

table

Here you can list explicit translations of method names, which are exceptions to the custom style filter.

<<less
Download (0.003MB)
Added: 2007-06-20 License: Perl Artistic License Price:
856 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5