1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
16 #ifndef CEPH_CLIENT_TRACE_H
17 #define CEPH_CLIENT_TRACE_H
30 this class is more like an iterator over a constant tokenlist (which
31 is protected by a mutex, see Trace.cc)
42 explicit Trace(const char* f) : _line(0), filename(f), fs(0) {}
47 Trace(const Trace& other);
48 const Trace& operator=(const Trace& other);
50 int get_line() { return _line; }
54 const char *peek_string(string &buf, const char *prefix);
55 const char *get_string(string &buf, const char *prefix);
59 return atoll(get_string(buf, 0));
62 return !fs || fs->eof();
63 //return _cur == _end;