All pastes #1037437 Raw Edit

Nicolas

public cpp v1 · immutable
#1037437 ·published 2008-06-03 01:32 UTC
rendered paste body
#include <iostream>#include "ConnectionManager.h"#include "ClientConnection.h"#include "Project.h"#include "ProjectList.h"int main() {    ConnectionManager mgr;    ClientConnection client(mgr, "localhost", "password");    const ProjectList& projects = client.get_projects();    ProjectList::const_iterator it;    for (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: */