1#ifndef INC_EUUNSIGNEDMAGICNUMBER_H
2#define INC_EUUNSIGNEDMAGICNUMBER_H
345 char chLastRangeDigit,
346 const char * pchValue );
376 char chLastRangeDigit,
377 const std::string & rsValue );
400 char chFirstRangeDigit,
401 char chLastRangeDigit );
434 char chFirstRangeDigit,
435 char chLastRangeDigit,
436 const char * pchValue );
467 char chFirstRangeDigit,
468 char chLastRangeDigit,
469 const std::string & rsValue );
517 void init(
char chFirstRangeDigit,
518 char chLastRangeDigit );
807 char chLastRangeDigit );
836 char chLastRangeDigit );
865 char chLastRangeDigit );
916 const char * pchSource,
917 unsigned int uiMaxSize,
918 char chFirstRangeDigit,
919 char chLastRangeDigit );
971 const char * pchSource,
972 unsigned int uiMaxSize,
973 char chFirstRangeDigit,
974 char chLastRangeDigit );
1027 const char * pchSource,
1028 unsigned int uiMaxSize,
1029 char chFirstRangeDigit,
1030 char chLastRangeDigit,
1129 return rOStream << rMagicNumber.
toString();
1134 std::string t_sMagicNumber;
1136 rIStream >> t_sMagicNumber;
1137 rMagicNumber.
setValue( t_sMagicNumber.c_str() );
Ein UnsignedMagicNumber ist eine künstliche Zahl aus Ziffern und Buchstaben (so ähnlich wie Hex-Zahle...
Definition EuUnsignedMagicNumber.h:122
int setValue(const char *pchValue)
UnsignedMagicNumber(unsigned int uiMaxSize, char chFirstRangeDigit, char chLastRangeDigit, const char *pchValue)
UnsignedMagicNumber(unsigned int uiMaxSize)
UnsignedMagicNumber(unsigned int uiMaxSize, const std::string &rsValue)
char * m_pchValue
Definition EuUnsignedMagicNumber.h:171
int m_iLastError
Definition EuUnsignedMagicNumber.h:215
UnsignedMagicNumber(unsigned int uiMaxSize, const char *pchValue)
unsigned int m_uiMaxSize
Definition EuUnsignedMagicNumber.h:182
void convertAsciiCharArrayInOwn(char *pchChar) const
char getFirstRangeDigit() const
bool subtractChar(char &rchTarget, const char chSource, char chLastRangeDigit)
bool checkFirstLast(char chFirstRangeDigit, char chLastRangeDigit)
char getLastRangeDigit() const
int subtractValue(char *pchTarget, const char *pchSource, unsigned int uiMaxSize, char chFirstRangeDigit, char chLastRangeDigit)
void convertAsciiCharInOwn(char &rchChar) const
std::string toString() const
UnsignedMagicNumber(unsigned int uiMaxSize, char chLastRangeDigit, const char *pchValue)
EnCalcType
Definition EuUnsignedMagicNumber.h:136
@ eADD
Definition EuUnsignedMagicNumber.h:146
char m_chLastRangeDigit
Definition EuUnsignedMagicNumber.h:204
UnsignedMagicNumber(const UnsignedMagicNumber &rT)
UnsignedMagicNumber(unsigned int uiMaxSize, char chFirstRangeDigit, char chLastRangeDigit)
char getAsciiCharInOwn(const char &rchChar) const
void convertOwnCharArrayInAscii(char *pchChar) const
UnsignedMagicNumber(unsigned int uiMaxSize, char chLastRangeDigit)
char m_chFirstRangeDigit
Definition EuUnsignedMagicNumber.h:193
friend std::istream & operator>>(std::istream &rIStream, UnsignedMagicNumber &rMagicNumber)
Definition EuUnsignedMagicNumber.h:1132
bool isInRange(const char chCharacter) const
friend std::ostream & operator<<(std::ostream &rOStream, const UnsignedMagicNumber &rMagicNumber)
Definition EuUnsignedMagicNumber.h:1127
char getOwnCharInAscii(const char &rchChar) const
int addValue(char *pchTarget, const char *pchSource, unsigned int uiMaxSize, char chFirstRangeDigit, char chLastRangeDigit)
bool addChar(char &rchTarget, const char chSource, char chLastRangeDigit)
virtual ~UnsignedMagicNumber()
bool isAsciiInRange(const char chCharacter) const
unsigned int getMaxSize() const
void init(char chFirstRangeDigit, char chLastRangeDigit)
UnsignedMagicNumber(unsigned int uiMaxSize, char chFirstRangeDigit, char chLastRangeDigit, const std::string &rsValue)
void convertOwnCharInAscii(char &rchChar) const
UnsignedMagicNumber(unsigned int uiMaxSize, char chLastRangeDigit, const std::string &rsValue)
int calculateValue(char *pchTarget, const char *pchSource, unsigned int uiMaxSize, char chFirstRangeDigit, char chLastRangeDigit, EnCalcType eCalcType)