ChipMaster's trial hacks on C++CMS starting with v1.2.1. Not sure I'll follow on with the v2 since it looks to be breaking and mostly frivolous.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
1.0 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
  4. //
  5. // See accompanying file COPYING.TXT file for licensing details.
  6. //
  7. ///////////////////////////////////////////////////////////////////////////////
  8. #ifndef CPPCMS_SESSIOM_MEMORY_STORAGE_H
  9. #define CPPCMS_SESSIOM_MEMORY_STORAGE_H
  10. #include <cppcms/defs.h>
  11. #include <cppcms/session_storage.h>
  12. namespace cppcms {
  13. namespace sessions {
  14. class CPPCMS_API session_memory_storage_factory : public session_storage_factory {
  15. public:
  16. session_memory_storage_factory();
  17. virtual booster::shared_ptr<session_storage> get();
  18. virtual bool requires_gc();
  19. virtual void gc_job();
  20. virtual ~session_memory_storage_factory();
  21. private:
  22. booster::shared_ptr<session_storage> storage_;
  23. };
  24. } // sessions
  25. } // cppcms
  26. #endif