Re: [Cppcms-users] Plugins and templates
Brought to you by:
artyom-beilis
|
From: Julian P. <ju...@wh...> - 2010-08-19 11:33:02
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> My other idea of the plugin implementing a method returning a
> subclass of cppcms::application seems more promising.
Now it compiles, but I have another problem: I tried to mount my
application via this code:
cppcms::service srv(argc,argv);
cout << "Listing request handlers." << endl;
request_handlers rh = plugcontainer.listRequestHandlers();
cout << "Got " << rh.size() << " request handlers." << endl;
for(request_handlers::iterator it = rh.begin(); it!=rh.end(); ++it) {
std::string regex = "^/modules/";
regex += it->first;
std::cout << "Attaching application at " << regex << std::endl;
srv.applications_pool().mount(it->second->getApplication(srv),cppcms::mount_point(regex));
cout << "This loop completed." << endl;
}
srv.run();
When running the compiled program, this error is thrown by the mount
command:
nothing to repeat, at offset 0
"This loop completed." is not printed anymore, the program terminates.
What causes this error and how to fix it?
Thanks,
Julian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJMbRZjAAoJENidYKvYQHlQdvsP/Rt0HQuED/oQbotL+EoMG1Sw
lBH2agI42cXjAcfMAGo9F7qKTsJawMywK0xpp6qaSMBhUNtMKqnO8/wYNU3ZK2Lz
BxaMKZpbimQ1OzOnQzv0Zs0I6btRw3nw+VKBWrZBqkzvev9Q4qekBt95IvpvMUov
OznX7ASMmhau9Z4Wx4msPRWunoRGysriaVClfZdiqKzCDFZcWOnuHMWmDdKzlSvp
NHCz1PW4qqC0O9vk8bs2JcurFTTqEcb2RuBh3XYjBp7pE/YghXiZAXUwd/e4WKvP
s92IiDjnHrrkqV490cuLeNJicP/cMrpSzyLl2jshaZorUDYYY9CMBcF3C3m7HcuM
Mztf8f63objj5yL1kWoEaHjorAdSBAlnh8k7VCluzqFdWaO2b7kSa46Tc13OYMy9
/hUGSS1hRLFQsMUt60NpdtgWoKK6qXpG/KMMeUmlHPPQRXRQZtSqt6bX7xwvLWSr
ic3wjmWCUT2b+NJ3xTDC5hYGZo2C/o0TEpkLELqcQDFnYaCoJJY+0EgPVUWZgltZ
vMm8qxWt9JMTq5+U8K+TfkY6LO6fGIIyY0B7WEO8AvLlanU1bEcA4y0QkTyvs1LO
WBx4/iHV+7uKu8CChTmot62ImdR7uCxWLTqPyuXDZC1PN4tgh1ASQFgGTwDtGE88
QaWzhIhfbTcH6qZqDFUu
=72yw
-----END PGP SIGNATURE-----
|