40 m_DoubleArrayInput(::std::vector< double >(0)),
46 m_DebugName(DebugName)
72 const unsigned int NUMBER_BOOL_OUTPUT(
m_BoolValue.size());
73 const unsigned int NUMBER_DOUBLE_OUTPUT(
m_DoubleValue.size());
75 const unsigned int NUMBER_INT_OUTPUT(
m_IntValue.size());
76 const unsigned int NUMBER_STRING_OUTPUT(
m_StringValue.size());
77 const unsigned int NUMBER_BIT_OUTPUT(
m_BitValue.size());
78 double dConversion(0);
81 ::std::stringstream ConversionStream;
149 ConversionStream.clear();
155 if (ConversionStream >> dConversion)
164 else if (ConversionStream >> fConversion)
173 else if (ConversionStream >> iConversion)
199 for (x = 0; x < NUMBER_BOOL_OUTPUT; x++)
206 for (x = 0; x < NUMBER_DOUBLE_OUTPUT; x++)
213 for (x = 0; x < NUMBER_DOUBLE_ARRAY_OUTPUT; x++)
220 for (x = 0; x < NUMBER_INT_OUTPUT; x++)
227 for (x = 0; x < NUMBER_STRING_OUTPUT; x++)
234 for (x = 0; x < NUMBER_BIT_OUTPUT; x++)
246 ::std::cout <<
"DEBUG: CStrorage \"" <<
m_DebugName <<
"\" -> ";
287 ::std::cout << ::std::endl;
304 const unsigned char* pByte(0);
305 unsigned long lIntSize(0);
306 unsigned long lArraySize(0);
307 unsigned long lStringSize(0);
308 int iIntInput(m_iIntInput());
309 ::std::vector< bool > Bits(0);
319 switch(m_eLastInputType)
323 Bits[0] = m_bBoolInput();
330 iIntInput = m_dDoubleInput();
334 lIntSize = lSize <
sizeof (int) * 8 ? lSize :
sizeof (
int) * 8;
337 pByte =
reinterpret_cast< const unsigned char*
>(iIntInput) + lIntSize - 1;
340 for (x = 0; x < lIntSize; x++)
343 for (y = 0; y < 8; y++)
346 Bits[(x * 8) + y] = ((1 << (7 - y)) & (*pByte));
360 lArraySize = lSize <
sizeof (int) * 8 * m_DoubleArrayInput().size() ? lSize :
sizeof (int) * 8 * m_DoubleArrayInput().size();
363 lIntSize = lArraySize / m_DoubleArrayInput().size();
366 for (z = 0; z < m_DoubleArrayInput().size(); z++)
369 iIntInput = m_DoubleArrayInput()[z];
372 pByte =
reinterpret_cast< const unsigned char*
>(iIntInput) + lIntSize - 1;
375 for (x = 0; x < lIntSize; x++)
378 for (y = 0; y < 8; y++)
381 Bits[(x * 8) + y + (z *
sizeof(
int) * 8)] = ((1 << (7 - y)) & (*pByte));
397 lStringSize = lSize < m_StringInput().size() *
sizeof (char) * 8 ? lSize / 8 : m_StringInput().size();
400 for (x = 0; x < lStringSize; x++)
403 for (y = 0; y < 8; y++)
406 Bits[(x * 8) + y] = ((1 << (7 - y)) & m_StringInput()[x]);