[brlcad-commits] SF.net SVN: brlcad:[33451]

2009-01-05 Thread davidloman
Revision: 33451
  http://brlcad.svn.sourceforge.net/brlcad/?rev=33451view=rev
Author:   davidloman
Date: 2009-01-05 15:30:58 + (Mon, 05 Jan 2009)

Log Message:
---
Adding Boost libraries to repository

Added Paths:
---
rt^3/trunk/include/boost/integer/
rt^3/trunk/include/boost/integer/integer_mask.hpp
rt^3/trunk/include/boost/integer/static_log2.hpp
rt^3/trunk/include/boost/integer/static_min_max.hpp
rt^3/trunk/include/boost/regex.h

Added: rt^3/trunk/include/boost/integer/integer_mask.hpp
===
--- rt^3/trunk/include/boost/integer/integer_mask.hpp   
(rev 0)
+++ rt^3/trunk/include/boost/integer/integer_mask.hpp   2009-01-05 15:30:58 UTC 
(rev 33451)
@@ -0,0 +1,93 @@
+//  Boost integer/integer_mask.hpp header file  
--//
+
+//  (C) Copyright Daryle Walker 2001.
+//  Distributed under the Boost Software License, Version 1.0. (See
+//  accompanying file LICENSE_1_0.txt or copy at
+//  http://www.boost.org/LICENSE_1_0.txt)
+
+//  See http://www.boost.org for updates, documentation, and revision history. 
+
+#ifndef BOOST_INTEGER_INTEGER_MASK_HPP
+#define BOOST_INTEGER_INTEGER_MASK_HPP
+
+#include boost/integer_fwd.hpp  // self include
+
+#include boost/config.hpp   // for BOOST_STATIC_CONSTANT
+#include boost/integer.hpp  // for boost::uint_t
+
+#include climits  // for UCHAR_MAX, etc.
+#include cstddef  // for std::size_t
+
+#include boost/limits.hpp  // for std::numeric_limits
+
+
+namespace boost
+{
+
+
+//  Specified single-bit mask class declaration  
-//
+//  (Lowest bit starts counting at 0.)
+
+template  std::size_t Bit 
+struct high_bit_mask_t
+{
+typedef typename uint_t(Bit + 1)::least  least;
+typedef typename uint_t(Bit + 1)::fast   fast;
+
+BOOST_STATIC_CONSTANT( least, high_bit = (least( 1u )  Bit) );
+BOOST_STATIC_CONSTANT( fast, high_bit_fast = (fast( 1u )  Bit) );
+
+BOOST_STATIC_CONSTANT( std::size_t, bit_position = Bit );
+
+};  // boost::high_bit_mask_t
+
+
+//  Specified bit-block mask class declaration  
--//
+//  Makes masks for the lowest N bits
+//  (Specializations are needed when N fills up a type.)
+
+template  std::size_t Bits 
+struct low_bits_mask_t
+{
+typedef typename uint_tBits::least  least;
+typedef typename uint_tBits::fast   fast;
+
+BOOST_STATIC_CONSTANT( least, sig_bits = (~( ~(least( 0u ))  Bits )) );
+BOOST_STATIC_CONSTANT( fast, sig_bits_fast = fast(sig_bits) );
+
+BOOST_STATIC_CONSTANT( std::size_t, bit_count = Bits );
+
+};  // boost::low_bits_mask_t
+
+
+#define BOOST_LOW_BITS_MASK_SPECIALIZE( Type ) 
 \
+  template struct low_bits_mask_t std::numeric_limitsType::digits   
{ \
+  typedef std::numeric_limitsType   limits_type; 
 \
+  typedef uint_tlimits_type::digits::least  least;   
 \
+  typedef uint_tlimits_type::digits::fast   fast;
 \
+  BOOST_STATIC_CONSTANT( least, sig_bits = (~( least(0u) )) ); 
 \
+  BOOST_STATIC_CONSTANT( fast, sig_bits_fast = fast(sig_bits) );   
 \
+  BOOST_STATIC_CONSTANT( std::size_t, bit_count = limits_type::digits );   
 \
+  }
+
+BOOST_LOW_BITS_MASK_SPECIALIZE( unsigned char );
+
+#if USHRT_MAX  UCHAR_MAX
+BOOST_LOW_BITS_MASK_SPECIALIZE( unsigned short );
+#endif
+
+#if UINT_MAX  USHRT_MAX
+BOOST_LOW_BITS_MASK_SPECIALIZE( unsigned int );
+#endif
+
+#if ULONG_MAX  UINT_MAX
+BOOST_LOW_BITS_MASK_SPECIALIZE( unsigned long );
+#endif
+
+#undef BOOST_LOW_BITS_MASK_SPECIALIZE
+
+
+}  // namespace boost
+
+
+#endif  // BOOST_INTEGER_INTEGER_MASK_HPP


Property changes on: rt^3/trunk/include/boost/integer/integer_mask.hpp
___
Added: svn:mime-type
   + text/plain
Added: svn:eol-style
   + native

Added: rt^3/trunk/include/boost/integer/static_log2.hpp
===
--- rt^3/trunk/include/boost/integer/static_log2.hpp
(rev 0)
+++ rt^3/trunk/include/boost/integer/static_log2.hpp2009-01-05 15:30:58 UTC 
(rev 33451)
@@ -0,0 +1,132 @@
+// -- Boost static_log2.hpp header file  --- //
+//
+// Copyright (C) 2001 Daryle Walker.
+// Copyright (C) 2003 Vesa Karvonen.
+// Copyright (C) 2003 Gennaro Prota.
+//
+// Distributed under the Boost Software License, Version 1.0.
+//(See accompanying file LICENSE_1_0.txt or copy at
+//  http://www.boost.org/LICENSE_1_0.txt)
+//
+// ---
+//   See http://www.boost.org/libs/integer for documentation.
+// - //
+
+
+#ifndef 

[brlcad-commits] SF.net SVN: brlcad:[33452] brlcad/trunk/src/mged

2009-01-05 Thread bob1961
Revision: 33452
  http://brlcad.svn.sourceforge.net/brlcad/?rev=33452view=rev
Author:   bob1961
Date: 2009-01-05 16:30:10 + (Mon, 05 Jan 2009)

Log Message:
---
Mods to use libged's ged_analyze.

Modified Paths:
--
brlcad/trunk/src/mged/Makefile.am
brlcad/trunk/src/mged/setup.c

Removed Paths:
-
brlcad/trunk/src/mged/anal.c

Modified: brlcad/trunk/src/mged/Makefile.am
===
--- brlcad/trunk/src/mged/Makefile.am   2009-01-05 15:30:58 UTC (rev 33451)
+++ brlcad/trunk/src/mged/Makefile.am   2009-01-05 16:30:10 UTC (rev 33452)
@@ -56,7 +56,6 @@
 
 mged_SOURCES = \
adc.c \
-   anal.c \
animedit.c \
arbs.c \
attach.c \

Deleted: brlcad/trunk/src/mged/anal.c
===
--- brlcad/trunk/src/mged/anal.c2009-01-05 15:30:58 UTC (rev 33451)
+++ brlcad/trunk/src/mged/anal.c2009-01-05 16:30:10 UTC (rev 33452)
@@ -1,986 +0,0 @@
-/*  A N A L . C
- * BRL-CAD
- *
- * Copyright (c) 1985-2008 United States Government as represented by
- * the U.S. Army Research Laboratory.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this file; see the file named COPYING for more
- * information.
- */
-/** @file anal.c
- *
- */
-
-#include common.h
-
-#include stdio.h
-#include math.h
-
-#include bio.h
-#include bu.h
-#include vmath.h
-#include bn.h
-#include ./sedit.h
-#include raytrace.h
-#include rtgeom.h
-#include ./mged.h
-#include ./mged_dm.h
-
-
-/* Conversion factor for Gallons to cubic millimeters */
-#define GALLONS_TO_MM3 3785411.784
-
-extern struct rt_db_internal es_int;
-
-static voiddo_anal(struct bu_vls *vp, const struct rt_db_internal *ip);
-static voidarb_anal(struct bu_vls *vp, const struct rt_db_internal *ip);
-static double  anal_face(struct bu_vls *vp, int face, fastf_t *center_pt, 
const struct rt_arb_internal *arb, int type, const struct bn_tol *tol);
-static voidanal_edge(struct bu_vls *vp, int edge, const struct 
rt_arb_internal *arb, int type);
-static double  find_vol(int loc, struct rt_arb_internal *arb, struct bn_tol 
*tol);
-static voidtgc_anal(struct bu_vls *vp, const struct rt_db_internal *ip);
-static voidhyp_anal(struct bu_vls *vp, const struct rt_db_internal *ip);
-static voidell_anal(struct bu_vls *vp, const struct rt_db_internal *ip);
-static voidtor_anal(struct bu_vls *vp, const struct rt_db_internal *ip);
-static voidars_anal(struct bu_vls *vp, const struct rt_db_internal *ip);
-static voidrpc_anal(struct bu_vls *vp, const struct rt_db_internal *ip);
-static voidrhc_anal(struct bu_vls *vp, const struct rt_db_internal *ip);
-static voidpart_anal(struct bu_vls *vp, const struct rt_db_internal *ip);
-static voidsuperell_anal(struct bu_vls *vp, const struct rt_db_internal 
*ip);
-
-/*
- * F _ A N A L Y Z E
- *
- * Analyze command - prints loads of info about a solid
- * Format: analyze [name]
- * if 'name' is missing use solid being edited
- */
-
-int
-f_analyze(ClientData clientData, Tcl_Interp *interp, int argc, char **argv)
-{
-register struct directory *ndp;
-mat_t new_mat;
-register int i;
-struct bu_vls  v;
-struct rt_db_internal  intern;
-
-CHECK_DBI_NULL;
-
-if (argc  1) {
-   struct bu_vls vls;
-
-   bu_vls_init(vls);
-   bu_vls_printf(vls, help analyze);
-   Tcl_Eval(interp, bu_vls_addr(vls));
-   bu_vls_free(vls);
-   return TCL_ERROR;
-}
-
-bu_vls_init(v);
-
-if ( argc == 1 ) {
-   /* use the solid being edited */
-   if (illump == SOLID_NULL) {
-   state_err( Default SOLID Analyze );
-   return TCL_ERROR;
-   }
-   ndp = LAST_SOLID(illump);
-   if (illump-s_Eflag) {
-   Tcl_AppendResult(interp, analyze: cannot analyze evaluated region 
containing ,
-ndp-d_namep, \n, (char *)NULL);
-   return TCL_ERROR;
-   }
-   switch ( state ) {
-   case ST_S_EDIT:
-   /* Use already modified version. new way */
-   do_anal(v, es_int);
-   Tcl_AppendResult(interp, bu_vls_addr(v), (char *)NULL);
-   bu_vls_free(v);
-   return TCL_OK;
-
-   case ST_O_EDIT:
-   /* use solid at bottom of path */
-   break;
-

[brlcad-commits] SF.net SVN: brlcad:[33445]

2009-01-05 Thread davidloman
Revision: 33445
  http://brlcad.svn.sourceforge.net/brlcad/?rev=33445view=rev
Author:   davidloman
Date: 2009-01-05 15:00:45 + (Mon, 05 Jan 2009)

Log Message:
---
Removed Superceded documentation.

Removed Paths:
-
rt^3/trunk/src/superceded_GS/java/stractNet/docs/
rt^3/trunk/src/superceded_GS/java/stractThread/docs/


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

--
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[33442]

2009-01-05 Thread davidloman
Revision: 33442
  http://brlcad.svn.sourceforge.net/brlcad/?rev=33442view=rev
Author:   davidloman
Date: 2009-01-05 14:34:38 + (Mon, 05 Jan 2009)

Log Message:
---
Adding ByteBag to repository

Modified Paths:
--
rt^3/trunk/include/GeometryService/NetMsg.h
rt^3/trunk/src/GeometryService/ByteBag.cxx

Modified: rt^3/trunk/include/GeometryService/NetMsg.h
===
--- rt^3/trunk/include/GeometryService/NetMsg.h 2009-01-05 14:33:15 UTC (rev 
33441)
+++ rt^3/trunk/include/GeometryService/NetMsg.h 2009-01-05 14:34:38 UTC (rev 
33442)
@@ -8,7 +8,6 @@
 #if !defined(__NETMSG_H__)
 #define __NETMSG_H__
 
-#include list
 #include iBME/iBMECommon.h
 
 
@@ -18,25 +17,34 @@
 {
 
 public:
-   virtual ~NetMsg();
-   NetMsg();
 
+  //Default Constructor
+  NetMsg();
+
+  //Regular Constructor
+  NetMsg(int mLen, int mType, std::string mUUID, std::string rUUID);
+
+  //Deserializing Constructor
+  NetMsg(char* byteArray);
+
+
+  virtual ~NetMsg();
+  
+
+  void serialize(char* data);
+  char[] serialize_();
+
 private:
-   int msgLen;
+  int msgLen;
+  int msgType;
+  UUID msgID;
+  UUID regardingMsgID;
+  char* data;
 
-   /**
-* OPCODE for the message
-*/
-   int msgType;
 
-   /**
-* 
-*/
+  void deserialize_();
+  char[] serialize_();
 
-   UUID msgID;
-   UUID regardingMsgID;
-   listchar data;
-
 };
 #endif // !defined(__NETMSG_H__)
 

Modified: rt^3/trunk/src/GeometryService/ByteBag.cxx
===
--- rt^3/trunk/src/GeometryService/ByteBag.cxx  2009-01-05 14:33:15 UTC (rev 
33441)
+++ rt^3/trunk/src/GeometryService/ByteBag.cxx  2009-01-05 14:34:38 UTC (rev 
33442)
@@ -1,4 +1,4 @@
-/* B Y T E B A G . C P P
+/* B Y T E B A G . C X X
  * BRL-CAD
  *
  * Copyright (c) 1997-2008 United States Government as represented by
@@ -17,7 +17,7 @@
  * License along with this file; see the file named COPYING for more
  * information.
  */
-/** @file ByteBag.cpp
+/** @file ByteBag.cxx
  *
  *  Description -
  *  Source file for the ByteBag class.


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

--
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits