Example #1
0
MEDUSA_NAMESPACE_BEGIN

  bool Architecture::FormatCell(
  Document      const& rDoc,
  BinaryStream  const& rBinStrm,
  Address       const& rAddr,
  Cell          const& rCell,
  std::string        & rStrCell,
  Cell::Mark::List   & rMarks) const
{
  switch (rCell.GetType())
  {
  case Cell::InstructionType: return FormatInstruction(rDoc, rBinStrm, rAddr, static_cast<Instruction const&>(rCell), rStrCell, rMarks);
  case Cell::ValueType:       return FormatValue      (rDoc, rBinStrm, rAddr, static_cast<Value       const&>(rCell), rStrCell, rMarks);
  case Cell::CharacterType:   return FormatCharacter  (rDoc, rBinStrm, rAddr, static_cast<Character   const&>(rCell), rStrCell, rMarks);
  case Cell::StringType:      return FormatString     (rDoc, rBinStrm, rAddr, static_cast<String      const&>(rCell), rStrCell, rMarks);
  default:                    return false;
  }
}
Example #2
0
bool Architecture::FormatCell(
    Document      const& rDoc,
    Address       const& rAddr,
    Cell          const& rCell,
    PrintData          & rPrintData) const
{
    switch (rCell.GetType())
    {
    case Cell::InstructionType:
        return FormatInstruction(rDoc, rAddr, static_cast<Instruction const&>(rCell), rPrintData);
    case Cell::ValueType:
        return FormatValue      (rDoc, rAddr, static_cast<Value       const&>(rCell), rPrintData);
    case Cell::CharacterType:
        return FormatCharacter  (rDoc, rAddr, static_cast<Character   const&>(rCell), rPrintData);
    case Cell::StringType:
        return FormatString     (rDoc, rAddr, static_cast<String      const&>(rCell), rPrintData);
    default:
        return false;
    }
}