[7444] | 1 | /* |
---|
| 2 | orxonox - the future of 3D-vertical-scrollers |
---|
| 3 | |
---|
| 4 | Copyright (C) 2004 orx |
---|
| 5 | |
---|
| 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 9 | any later version. |
---|
| 10 | |
---|
| 11 | ### File Specific: |
---|
| 12 | main-programmer: Christoph Renner |
---|
| 13 | co-programmer: ... |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #include "synchronizeable_var.h" |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | /** |
---|
| 21 | * standard constructor |
---|
| 22 | * @todo this constructor is not jet implemented - do it |
---|
| 23 | */ |
---|
| 24 | SynchronizeableVar::SynchronizeableVar ( void * ptrIn, void * ptrOut, std::string name, int length, int permission, int priority) |
---|
| 25 | { |
---|
| 26 | this->ptrIn = ptrIn; |
---|
| 27 | this->ptrOut = ptrOut; |
---|
| 28 | this->length = length; |
---|
| 29 | this->permission = permission; |
---|
| 30 | this->priority = priority; |
---|
| 31 | this->real_priority = priority; |
---|
| 32 | this->name = name; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | /** |
---|
| 37 | * standard deconstructor |
---|
| 38 | */ |
---|
| 39 | SynchronizeableVar::~SynchronizeableVar () |
---|
| 40 | { |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | /** |
---|
| 44 | * write var data to byte buffer |
---|
| 45 | * @param buf pointer to write to |
---|
| 46 | * @param maxLength writeToBuf will not write more than maxLength bytes |
---|
| 47 | * @return number bytes written |
---|
| 48 | */ |
---|
| 49 | int SynchronizeableVar::writeToBuf( byte * buf, int maxLength ) |
---|
| 50 | { |
---|
| 51 | #warning implement this |
---|
| 52 | } |
---|
| 53 | |
---|
| 54 | /** |
---|
| 55 | * read var data from byte buffer |
---|
| 56 | * @param buf pointer to read from |
---|
| 57 | * @param maxLength readFromBuf will not read more than maxLength bytes |
---|
| 58 | * @return number bytes read |
---|
| 59 | */ |
---|
| 60 | int SynchronizeableVar::readFromBuf( byte * buf, int maxLength ) |
---|
| 61 | { |
---|
| 62 | #warning implement this |
---|
| 63 | } |
---|