Search:
Type: Posts; User: mop65715
Search:
Search took 0.10 seconds.
-
June 19th, 2010, 05:04 PM
Given:
A [0..4] - where 0..4 represents a bit proxy 4 wide
B [5..8] - where 5..8 represents a bit proxy 4 wide
C [9..12] - where 9..12 represents a bit proxy 4 wide
D [13..16] - where 13..16...
-
April 5th, 2010, 08:09 PM
My concern goes beyond 'unused symbols'. I'm trying to make sense of a coding standard that suggests using the 'global_constants1' option.
-
April 5th, 2010, 05:45 PM
Given:
# include <iostream>
//In a file called ... global_constants.h
class global_constants1
{
public :
-
February 7th, 2010, 06:08 PM
The overhead is the big difference for the event driven case (There's zero overhead for the global repository). You'll end up with Pnhandlers notifying DnHandlers of a PnMessage every 40ms. ...
-
February 7th, 2010, 12:08 PM
Partially... See attached.
-
February 6th, 2010, 11:10 PM
Really, isn't that I've said from the outset. This has become silly, so in an attempt to keep the SNR down...move on.
-
February 6th, 2010, 09:59 PM
Again - from my perspective a Dn handler does not need a notification when a Pn message is updated by a Pn handler. A Dn handler's process method is invoked after 'Reads' of Aircraft (A/C) data. ...
-
February 6th, 2010, 01:28 PM
[QUOTE=potatoCode;1915161]Hi mop65715
With all the respect, I recommend that you follow kempofighter's suggestion.
QUOTE]
I did and came up with a revised implementation. I still have a...
-
February 5th, 2010, 03:59 PM
For starters, the pure virtual 'Serialize' function in the Base class is contrived. An alternate name might have eliminated the confusion. That said,...... consider this. Lets assume you and I are...
-
February 5th, 2010, 02:09 PM
OK! Let me rethink this.
Here's another question: Assume the messages were singleton.
Given:
D1* ptr2 = static_cast< D1* > ( simple.GetInstance ( 1 ) );
This results in a call to:
-
February 5th, 2010, 11:55 AM
Given:
#include <map>
#include <memory>
#include <exception>
#include <vector>
#include <iostream>
-
February 4th, 2010, 07:02 PM
Consider the pseudo code.
class Base_Msg {
public:
// stuff
virtual ~Base_Msg() {}
};
-
February 2nd, 2010, 04:08 PM
Could you elaborate on the part starting with 'I'd think ... .ClassType'. Not sure if I follow you...
-
February 2nd, 2010, 01:56 PM
superbonzo and Lindley(as always) thanks. On a separate note: Consider this line
//I think static_cast here should suffice
return static_cast< ClassType& >( *( key_list [ key ] ) );
...
-
February 2nd, 2010, 10:58 AM
The singleton class based off the CRTP is not provided, nonetheless consider.
# include <iostream>
# include <map>
# include <string>
# include <vector>
class Base {
-
December 11th, 2009, 03:35 PM
For starters I'm using Visual C++ 2008 Express Edition.
That aside, I have a visual studio solution test_project within a directory called test_project. IOW my directory structure is akin to:
...
-
December 3rd, 2009, 08:37 PM
See attached for an approach that provides a byte-order-agnostic internal buffer, which just stores a current value as an array of bytes. The class also provides an interface for setting/getting...
-
December 2nd, 2009, 09:34 PM
I'm perusing code that is structured around - presumably a bridge design. There's performance concerns surround the store functions that store composite types which contains POD types. So consider:...
-
November 20th, 2009, 03:41 PM
I'm trying to put together a class or (suite of classes) that'll support reads and writes in binary form into an input and output stream respectively. The class will also support automatic...
-
November 13th, 2009, 11:18 PM
Consider the source snippet
typedef hw_default < volatile unsigned short > hw_default_type;
typedef hw_register_struct < volatile unsigned short,
...
-
October 21st, 2009, 10:45 AM
For starters, thanks Paul. Two questions:
a) Can you show me a context where it does matter?
b) On an slightly unrelated note. Consider the case where the layout defined in a requirements...
-
October 20th, 2009, 05:31 PM
Consider
# include <iostream>
template < typename value_type >
struct your_policy {
static
value_type write_to_register ( value_type value ) {
-
September 30th, 2009, 05:34 PM
You and Codeplug have been a blessing. Almost there! So bottom line is: Endian issues between machines is a 'non issue' with the first approach. The 'cost' though is 4 bytes.. ( a factor of 2...
-
September 30th, 2009, 05:12 PM
[QUOTE=Lindley;1883207]Since a short is 2 bytes, you could serialize a short into only 2 chars if you wanted. QUOTE]
Just so I'm clear. As in (?):
uv[ 0 ] = 'C'
uv[ 1 ] = '2'
uv[ 2 ] = 'C'...
-
September 30th, 2009, 04:54 PM
Excellent! Could you elaborate on item 1 for me?
|
Click Here to Expand Forum to Full Width
|