libfossil
fossil.hpp File Reference
#include "fossil-scm/fossil.h"
#include <stdexcept>
#include <string>
#include <sstream>
#include <stdarg.h>

Go to the source code of this file.

Data Structures

class  fsl::Buffer
 A very thin varnish over fsl_buffer, the primary advantage being that it frees its memory when it destructs, so it's easier to keep exception-safe than a raw fsl_buffer. More...
 
class  fsl::BufferOStream
 
class  fsl::Context
 C++ counterpart of fsl_cx, but generally requires less code to use because it throws exceptions for any notable errors. More...
 
class  fsl::Context::Transaction
 A utility class for managing transactions for a Context-managed database (regardless of whether the checkout or repo db). More...
 
class  fsl::ContextOStream
 A std::ostream which redirects its output to the output channel configured for a fsl_cx instance. More...
 
class  fsl::ContextOStreamBuf
 A std::streambuf impl which redirects a std::streambuf to fsl_output(). More...
 
class  fsl::Db
 C++ counterpart to fsl_db. More...
 
class  fsl::Db::Transaction
 A utility to simplify db transaction lifetimes. More...
 
class  fsl::Deck
 The C++ counterpart to the C-side fsl_deck class. More...
 
class  fsl::Deck::FCardIterator
 An STL-style iterator class for use with traversing the F-cards in a Deck object. More...
 
class  fsl::Deck::TCardIterator
 An iterator type for traversing lists of T-cards (tags) in a deck. More...
 
class  fsl::Exception
 The base exception type used by the API. More...
 
class  fsl::FslListIterator< VT >
 A utility class for iterating over fsl_list instances. More...
 
class  fsl::FslOutputFStream
 This std::ostream subclass which proxies a fsl_output_f() implementation, sending all output to that function. More...
 
class  fsl::FslOutputFStreamBuf
 A std::streambuf impl which redirects a std::streambuf to a fsl_output_f(). More...
 
class  fsl::OOMException
 Out-of-memory exception. More...
 
class  fsl::Stmt
 A prepared statement, the C++ counterpart to fsl_stmt. More...
 
class  fsl::StmtBinder
 A utility class for binding values to statements. More...
 

Namespaces

 fsl
 License as yet undecided!
 

Functions

fsl_int_t fsl::fsl_appendf_f_std_ostream (void *state, char const *data, fsl_int_t n)
 A fsl_appendf_f() implementation which requires that state be a std::ostream pointer. More...
 
int fsl::fsl_input_f_std_istream (void *state, void *dest, fsl_size_t *n)
 A fsl_input_f() implementation which requires state to be a std::istream pointer. More...
 
int fsl::fsl_output_f_std_ostream (void *state, void const *data, fsl_size_t n)
 A fsl_output_f() implementation which requires that state be a std::ostream pointer. More...
 
std::ostream & fsl::operator<< (std::ostream &os, Buffer const &b)
 Writes the first b.used() bytes of b.mem() to os and returns os. More...
 
template<typename ValueType >
Buffer & fsl::operator<< (Buffer &b, ValueType const v)
 Accepts any type compatible with std::ostream<<v, converts it to a string (via std::ostringstream), then appends that result to b. More...
 
std::ostream & fsl::operator<< (std::ostream &os, Deck const &d)
 Calls d.output(os) and returns os. More...