#include <cromp_transaction.h>
Public Types | |
| enum | outcomes { OKAY = basis::common::OKAY, GARBAGE = basis::common::GARBAGE, PARTIAL = basis::common::PARTIAL, DEFINE_OUTCOME, DEFINE_OUTCOME } |
Public Member Functions | |
| virtual | ~cromp_transaction () |
| DEFINE_CLASS_NAME ("cromp_transaction") | |
Static Public Member Functions | |
| static const char * | outcome_name (const basis::outcome &to_name) |
| static void | flatten (basis::byte_array &packed_form, const octopi::infoton &request, const octopi::octopus_request_id &id) |
| static bool | unflatten (basis::byte_array &packed_form, basis::byte_array &still_flat, octopi::octopus_request_id &id) |
| static int | minimum_flat_size (const octopi::octopus_request_id &id) |
| static int | minimum_flat_size (const structures::string_array &classifier, const octopi::octopus_request_id &id) |
| static bool | resynchronize (basis::byte_array &packed_form) |
| static basis::outcome | peek_header (const basis::byte_array &packed_form, int &length) |
Definition at line 31 of file cromp_transaction.h.
Definition at line 37 of file cromp_transaction.h.
| cromp::cromp_transaction::~cromp_transaction | ( | ) | [virtual] |
Definition at line 55 of file cromp_transaction.cpp.
| cromp::cromp_transaction::DEFINE_CLASS_NAME | ( | "cromp_transaction" | ) |
| void cromp::cromp_transaction::flatten | ( | basis::byte_array & | packed_form, | |
| const octopi::infoton & | request, | |||
| const octopi::octopus_request_id & | id | |||
| ) | [static] |
Definition at line 105 of file cromp_transaction.cpp.
References continuable_error, copy(), cromp::cromp_name_array(), FUNCDEF, basis::array< contents >::last(), basis::array< contents >::length(), LOG, static_class_name, basis::array< contents >::subarray(), and unflatten().
Referenced by cromp::cromp_common::pack_and_ship().
| int cromp::cromp_transaction::minimum_flat_size | ( | const structures::string_array & | classifier, | |
| const octopi::octopus_request_id & | id | |||
| ) | [static] |
Definition at line 97 of file cromp_transaction.cpp.
References minimum_flat_size().
| int cromp::cromp_transaction::minimum_flat_size | ( | const octopi::octopus_request_id & | id | ) | [static] |
Definition at line 91 of file cromp_transaction.cpp.
References cromp::cromp_name_array(), and basis::array< contents >::length().
Referenced by minimum_flat_size().
| const char * cromp::cromp_transaction::outcome_name | ( | const basis::outcome & | to_name | ) | [static] |
Definition at line 58 of file cromp_transaction.cpp.
References basis::outcome::value().
| outcome cromp::cromp_transaction::peek_header | ( | const basis::byte_array & | packed_form, | |
| int & | length | |||
| ) | [static] |
Definition at line 228 of file cromp_transaction.cpp.
References FUNCDEF, GARBAGE, basis::array< contents >::length(), LOG, cromp::MAXIMUM_TRANSACTION, OKAY, PARTIAL, and basis::astring::s().
Referenced by unflatten().
| bool cromp::cromp_transaction::resynchronize | ( | basis::byte_array & | packed_form | ) | [static] |
Definition at line 192 of file cromp_transaction.cpp.
References CHECK_LENGTH, FUNCDEF, basis::array< contents >::length(), LOG, and WHACK_AND_GO.
| bool cromp::cromp_transaction::unflatten | ( | basis::byte_array & | packed_form, | |
| basis::byte_array & | still_flat, | |||
| octopi::octopus_request_id & | id | |||
| ) | [static] |
Definition at line 153 of file cromp_transaction.cpp.
References continuable_error, FUNCDEF, basis::array< contents >::length(), LOG, OKAY, octopi::octopus_request_id::packed_size(), peek_header(), basis::array< contents >::reset(), static_class_name, basis::array< contents >::subarray(), octopi::octopus_request_id::unpack(), and basis::array< contents >::zap().
Referenced by flatten().
1.6.3