Ignore:
Timestamp:
Jun 30, 2009, 5:57:27 AM (12 years ago)
Author:
Peter Johansson
Message:

refs #388

Create a sub-directory 'lib/yat' in which files from yat are
placed. The files may be updated via 'make fetch', see file README for
more details on how to change which files are updated/copied through
this mechanism.

The reason we do not use subversion's external mechanism is that we
don't want the files to be synchronised with yat automatically. We
want the update to be moderated by some developer.

I chose to fetch files using the svn client rather than wget because
the svn allows us to get an Id string with information from the yat
repository. 'wget' would just download the file as it appears on the
server that is the string is not expanded.

The file 'config_public.h' is created by configure just as in
yat. This implies that automake adds $(top_builddir)/lib/yat to the
include path so unless in a VPATH build $(top_srcdir)/lib/yat is in
the include path. As we have already added $(top_srcdir)/lib to the
include path, and there are both a lib/utility.h and a
lib/yat/utility.h it is not obvious which file is included when having
'include "utility.h"'. For this reason, when being in bin/ and test/
it is needed to include "../lib/utility.h" rather than "utility.h"
when we want to include 'lib/utility.h'.

Location:
trunk/lib/yat
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/lib/yat/ColumnStream.h

    • Property svn:keywords deleted
    r792 r795  
    1 #ifndef _theplu_svndigest_column_stream_
    2 #define _theplu_svndigest_column_stream_
     1#ifndef _theplu_yat__utility_column_stream_
     2#define _theplu_yat__utility_column_stream_
    33
    4 // $Id$
     4// $Id: ColumnStream.h 1887 2009-03-31 17:38:16Z peter $
    55
    66/*
    7   Copyright (C) 2007, 2008 Peter Johansson
    8   Copyright (C) 2008 Jari Häkkinen
     7  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
     8  Copyright (C) 2009 Peter Johansson
    99
    1010  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    2121
    2222  You should have received a copy of the GNU General Public License
    23   along with svndigest. If not, see <http://www.gnu.org/licenses/>.
     23  along with yat. If not, see <http://www.gnu.org/licenses/>.
    2424*/
    25 
    26 #include <iosfwd>
     25#include <fstream>
     26#include <iostream>
    2727#include <sstream>
    2828#include <vector>
    2929
    30 namespace theplu{
    31 namespace svndigest{
     30namespace theplu {
     31namespace yat {
     32namespace utility {
    3233
    3334  ///
     
    5354    void flush(void);
    5455
    55     inline size_t& margin(size_t c) { return margins_[c]; }
     56    /**
     57       \return reference to margin of column \a c
     58     */
     59    size_t& margin(size_t c);
    5660
     61    /**
     62       \brief jump to next column
     63     */
    5764    void next_column(void);
    5865
     
    6774    void set_column(size_t);
    6875
    69     inline size_t& width(size_t c) { return width_[c]; }
     76    /**
     77       \return reference to width of column \a c
     78     */
     79    size_t& width(size_t c);
    7080
    7181  private:
     
    8898
    8999
     100  /**
     101     \brief ColumnStream output operator
     102
     103     Requirement: T should have operator
     104     operator<<(ostream&, const T&)
     105
     106     \relates ColumnStream
     107   */
    90108  template <typename T>
    91109  ColumnStream& operator<<(ColumnStream& s, const T& rhs)
     
    97115  }
    98116
    99 }} // end of namespace svndigest and namespace theplu
     117}}} // end of namespace utility, yat, theplu
    100118
    101119#endif
Note: See TracChangeset for help on using the changeset viewer.