/" "$HTML_DIR/$htm"
26 | done
27 |
--------------------------------------------------------------------------------
/build/scripts/bitten_cmake_nightly_debug.ini.in:
--------------------------------------------------------------------------------
1 | [jag]
2 | build-type = cmake_nightly_debug
3 | srcdir = @CMAKE_SOURCE_DIR@
4 |
5 |
--------------------------------------------------------------------------------
/build/scripts/bitten_cmake_nightly_release.ini.in:
--------------------------------------------------------------------------------
1 | [jag]
2 | build-type = cmake_nightly_release
3 | srcdir = @CMAKE_SOURCE_DIR@
4 |
5 |
--------------------------------------------------------------------------------
/build/scripts/bitten_cmake_smoke.ini.in:
--------------------------------------------------------------------------------
1 | [jag]
2 | build-type = cmake_smoke
3 | srcdir = @CMAKE_SOURCE_DIR@
4 |
5 |
--------------------------------------------------------------------------------
/build/scripts/poll_nightly.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Copyright (c) 2005-2009 Jaroslav Gresula
4 | #
5 | # Distributed under the MIT license (See accompanying file
6 | # LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
7 | #
8 |
9 |
10 | SCRIPT_LOCATION=`dirname $0`;
11 |
12 | function call_server()
13 | {
14 | CFG=$1
15 | cd $SCRIPT_LOCATION/jagbase.$CFG
16 | INI=bitten_cmake_nightly_$CFG.ini
17 | LOGFILE="../../logs/$INI.`date +%Y-%m`.log"
18 | ./bitten_slave.sh --log=$LOGFILE $INI
19 | cd -
20 | }
21 |
22 | call_server debug
23 | call_server release
24 |
--------------------------------------------------------------------------------
/build/scripts/poll_smoke.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Copyright (c) 2005-2009 Jaroslav Gresula
4 | #
5 | # Distributed under the MIT license (See accompanying file
6 | # LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
7 | #
8 |
9 |
10 | SCRIPT_LOCATION=`dirname $0`;
11 | cd $SCRIPT_LOCATION/jagbase.build
12 | INI=bitten_cmake_smoke.ini
13 | LOGFILE="../../logs/$INI.`date +%Y-%m`.log"
14 | ./bitten_slave.sh --log=$LOGFILE $INI
15 |
16 |
--------------------------------------------------------------------------------
/code/include/core/errlib/log.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005-2009 Jaroslav Gresula
2 | //
3 | // Distributed under the MIT license (See accompanying file
4 | // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
5 | //
6 |
7 |
8 | #ifndef __LOG_H_JG_2008__
9 | #define __LOG_H_JG_2008__
10 |
11 | namespace jag
12 | {
13 | class IMessageSink;
14 |
15 | IMessageSink& message_sink();
16 | void set_message_sink(IMessageSink*);
17 |
18 | } //namespace jag
19 |
20 |
21 | #endif //__LOG_H_JG_2008__
22 |
--------------------------------------------------------------------------------
/code/include/core/errlib/msgrecord.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005-2009 Jaroslav Gresula
2 | //
3 | // Distributed under the MIT license (See accompanying file
4 | // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
5 | //
6 |
7 |
8 | #ifndef __MSGRECORD_H_JG024__
9 | #define __MSGRECORD_H_JG024__
10 | #if defined(_MSC_VER) && (_MSC_VER>=1020)
11 | # pragma once
12 | #endif
13 |
14 | #include
15 | #include
16 |
17 |
18 | namespace jag
19 | {
20 |
21 | struct MessageRecord
22 | {
23 | char const* m_message;
24 | UInt m_msg_code;
25 | MessageSeverity m_severity;
26 | };
27 |
28 | } //namespace jag
29 |
30 |
31 | #endif //__MSGRECORD_H_JG024__
32 |
33 |
--------------------------------------------------------------------------------
/code/include/core/generic/algorithms.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005-2009 Jaroslav Gresula
2 | //
3 | // Distributed under the MIT license (See accompanying file
4 | // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
5 | //
6 |
7 | #ifndef __ALGORITHMS_JG1020_H__
8 | # define __ALGORITHMS_JG1020_H__
9 |
10 | namespace jag {
11 |
12 |
13 | /// copy_if was somehow dropped from the standard (see TC++PL 18.6.1)
14 | template
15 | Out copy_if(In first, In last, Out res, Pred p)
16 | {
17 | while (first != last)
18 | {
19 | if (p(*first))
20 | *res++ = *first;
21 | ++first;
22 | }
23 |
24 | return res;
25 | }
26 |
27 |
28 | } // namespace jag
29 |
30 | #endif // __ALGORITHMS_JG1020_H__
31 | /** EOF @file */
32 |
--------------------------------------------------------------------------------
/code/include/core/generic/autoarray.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005-2009 Jaroslav Gresula
2 | //
3 | // Distributed under the MIT license (See accompanying file
4 | // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
5 | //
6 |
7 |
8 | #ifndef __AUTOARRAY_JG2155_H__
9 | # define __AUTOARRAY_JG2155_H__
10 |
11 | #include
12 |
13 | namespace jag {
14 |
15 | template
16 | class auto_array
17 | {
18 | T* m_p;
19 |
20 | public:
21 | auto_array(size_t size)
22 | : m_p(new T[size])
23 | {
24 | JAG_PRECONDITION(size);
25 | }
26 |
27 | ~auto_array() {
28 | delete [] m_p;
29 | }
30 |
31 | T* ptr() {
32 | JAG_ASSERT(m_p);
33 | return m_p;
34 | }
35 |
36 | T* detach() {
37 | T* tmp = m_p;
38 | m_p = 0;
39 | return tmp;
40 | }
41 | };
42 |
43 | } // namespace jag
44 |
45 | #endif // __AUTOARRAY_JG2155_H__
46 | /** EOF @file */
47 |
--------------------------------------------------------------------------------
/code/include/core/generic/containerhelpers.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005-2009 Jaroslav Gresula
2 | //
3 | // Distributed under the MIT license (See accompanying file
4 | // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
5 | //
6 |
7 |
8 | #ifndef __CONTAINERHELPERS_H_JG_2251__
9 | #define __CONTAINERHELPERS_H_JG_2251__
10 |
11 | #include
12 |
13 | namespace jag
14 | {
15 |
16 |
17 | /// retrieves byte size of the vector content
18 | template
19 | size_t byte_size(std::vector const& vec)
20 | {
21 | return vec.size() * sizeof(T);
22 | }
23 |
24 |
25 | /// retrieves a pointer to first item of the vector
26 | template
27 | T const* address_of(std::vector const& vec)
28 | {
29 | return vec.empty()
30 | ? static_cast(0)
31 | : &vec[0]
32 | ;
33 | }
34 |
35 |
36 | } // namespace jag
37 |
38 | #endif //__CONTAINERHELPERS_H_JG_2251__
39 |
40 |
--------------------------------------------------------------------------------
/code/include/core/generic/functional.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005-2009 Jaroslav Gresula
2 | //
3 | // Distributed under the MIT license (See accompanying file
4 | // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
5 | //
6 |
7 |
8 | #ifndef __FUNCTIONAL_JG2232_H__
9 | # define __FUNCTIONAL_JG2232_H__
10 |
11 | #include
12 |
13 | namespace jag {
14 |
15 |
16 | template
17 | struct jag_select2nd
18 | : public std::unary_function
19 | {
20 | const typename Pair::second_type operator()(Pair const& val) const
21 | {
22 | return val.second;
23 | }
24 | };
25 |
26 |
27 | } // namespace jag
28 |
29 | #endif // __FUNCTIONAL_JG2232_H__
30 | /** EOF @file */
31 |
--------------------------------------------------------------------------------
/code/include/core/generic/hash.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005-2009 Jaroslav Gresula
2 | //
3 | // Distributed under the MIT license (See accompanying file
4 | // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
5 | //
6 |
7 | #ifndef __HASH_H_JAG_1139__
8 | #define __HASH_H_JAG_1139__
9 |
10 |
11 | namespace jag
12 | {
13 |
14 |
15 | template
16 | struct hash_functor
17 | : public std::unary_function
18 | {
19 |
20 | size_t operator()(T const& t) {
21 | return hash_value(t);
22 | }
23 | };
24 |
25 |
26 | } // namespace jag::resources
27 |
28 | #endif //__HASH_H_JAG_1139__
29 |
30 |
--------------------------------------------------------------------------------
/code/include/core/generic/internal_types.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005-2009 Jaroslav Gresula
2 | //
3 | // Distributed under the MIT license (See accompanying file
4 | // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
5 | //
6 |
7 | #ifndef INTERNAL_TYPES_JG2212_H__
8 | #define INTERNAL_TYPES_JG2212_H__
9 |
10 | #include
11 |
12 | namespace jag {
13 |
14 | typedef unsigned short UInt16;
15 |
16 | BOOST_STATIC_ASSERT(sizeof(UInt16)==2);
17 |
18 |
19 | } // namespace jag
20 |
21 | #endif // INTERNAL_TYPES_JG2212_H__
22 | /** EOF @file */
23 |
--------------------------------------------------------------------------------
/code/include/core/generic/macros.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005-2009 Jaroslav Gresula
2 | //
3 | // Distributed under the MIT license (See accompanying file
4 | // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
5 | //
6 |
7 | #ifndef __MACROS_CPP__1221110
8 | #define __MACROS_CPP__1221110
9 |
10 | namespace jag_detail {
11 | template inline void ignore_unused_variable_warning(const T&) {}
12 | }
13 |
14 | /// use for deliberately unused arguments
15 | //#define JAG_UNUSED_FUNCTION_ARGUMENT(arg) arg;
16 | //#define JAG_UNUSED_VARIABLE(arg) arg;
17 |
18 | #define JAG_UNUSED_FUNCTION_ARGUMENT(arg) ::jag_detail::ignore_unused_variable_warning(arg);
19 | #define JAG_UNUSED_VARIABLE(arg) ::jag_detail::ignore_unused_variable_warning(arg);
20 |
21 | #endif //__MACROS_CPP__1221110
22 |
--------------------------------------------------------------------------------
/code/include/core/generic/mapsmartptr.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005-2009 Jaroslav Gresula
2 | //
3 | // Distributed under the MIT license (See accompanying file
4 | // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
5 | //
6 |
7 |
8 | #ifndef __MAPSMARTPTR_H_JAG_1825__
9 | #define __MAPSMARTPTR_H_JAG_1825__
10 |
11 | #include
12 | #include