#include #include "ConnectionManager.h" #include "ClientConnection.h" #include "Project.h" #include "ProjectList.h" int main() { ConnectionManager mgr; ClientConnection& client = mgr.connect("localhost", "password"); const ProjectList& projects = client.get_projects(); for (ProjectList::const_iterator it = projects.begin(); it != projects.end(); ++it) { Project* p = *it; std::cout << p->master_url() << " " << p->name() << '\n'; } return 0; } /* vim: set ts=4 sw=4 et: */