downloads

This sections includes an eclectic collection of applications, libraries, templates and general code snippets that I’ve written over the years, that may or may not be useful to somebody out there.

Feel free to contact me with questions/comments/suggestions about any of this at mike at fonolo dot com

 

download Net::fonolo
Net::fonolo v1.3 (5.49 KB bytes)
Added: Dec 17th, 2008

Net::fonolo is a PERL module for accessing the fonolo developer community.
download Simple C++ std::string Extension Class
Simple C++ std::string Extension Class v1.0 (3.47 KB bytes)
Added: Dec 19th, 2008

This is a header class that I created a while ago that extends the std::string class, to add some of simple features that I’ve always felt were missing.

I know that all of these features are attainable in various different ways; and many of them are very “C” like (a sprintf() like function, rather than using << operators), but I find this to be faster, and more compact.

download C++ Singleton Class Template
C++ Singleton Class Template v1.0 (1.09 KB bytes)
Added: Dec 19th, 2008

This is a simple singleton class template, that can be used anytime you want to create a global object, and don’t want to use “extern” all over the place.

In your class definition, simply extend the csingleton class like:

class foo : public csingleton<foo>
{
	public:
		void bar();
};

Then call your methods like

foo::instance()->bar();

and it will only ever create one instance of that object.

share this post
  • Facebook
  • LinkedIn
  • Digg
  • TwitThis
  • del.icio.us
  • Google Bookmarks
  • StumbleUpon
  • Tumblr