Skip to content

Commit

Permalink
Merge pull request #686 from evoskuil/master
Browse files Browse the repository at this point in the history
Add virtual destructors in command generation.
  • Loading branch information
evoskuil committed Mar 24, 2021
2 parents a042878 + 100b160 commit e44563e
Show file tree
Hide file tree
Showing 114 changed files with 792 additions and 1 deletion.
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API command
return "not-implemented";
}

/**
* Destructor.
*/
virtual ~command()
{
}

/**
* The symbolic (not localizable) command name, lower case.
* @return Example: "fetch-transaction"
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/address-decode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ class BCX_API address_decode
return "decode-addr";
}

/**
* Destructor.
*/
virtual ~address_decode()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/address-embed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ class BCX_API address_embed
return "embed-addr";
}

/**
* Destructor.
*/
virtual ~address_embed()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/address-encode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ class BCX_API address_encode
return "encode-addr";
}

/**
* Destructor.
*/
virtual ~address_encode()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/address-to-key.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API address_to_key
}


/**
* Destructor.
*/
virtual ~address_to_key()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/base16-decode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API base16_decode
}


/**
* Destructor.
*/
virtual ~base16_decode()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/base16-encode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API base16_encode
}


/**
* Destructor.
*/
virtual ~base16_encode()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/base58-decode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API base58_decode
}


/**
* Destructor.
*/
virtual ~base58_decode()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/base58-encode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API base58_encode
}


/**
* Destructor.
*/
virtual ~base58_encode()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/base58check-decode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API base58check_decode
}


/**
* Destructor.
*/
virtual ~base58check_decode()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/base58check-encode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API base58check_encode
}


/**
* Destructor.
*/
virtual ~base58check_encode()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/base64-decode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API base64_decode
}


/**
* Destructor.
*/
virtual ~base64_decode()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/base64-encode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API base64_encode
}


/**
* Destructor.
*/
virtual ~base64_encode()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/bitcoin160.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API bitcoin160
}


/**
* Destructor.
*/
virtual ~bitcoin160()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/bitcoin256.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API bitcoin256
}


/**
* Destructor.
*/
virtual ~bitcoin256()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/broadcast-tx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ class BCX_API broadcast_tx
return "sendtx-p2p";
}

/**
* Destructor.
*/
virtual ~broadcast_tx()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/btc-to-satoshi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ class BCX_API btc_to_satoshi
return "satoshi";
}

/**
* Destructor.
*/
virtual ~btc_to_satoshi()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/cert-new.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ class BCX_API cert_new
}


/**
* Destructor.
*/
virtual ~cert_new()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/cert-public.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ class BCX_API cert_public
}


/**
* Destructor.
*/
virtual ~cert_public()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/ec-add-secrets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ class BCX_API ec_add_secrets
return "ec-add-modp";
}

/**
* Destructor.
*/
virtual ~ec_add_secrets()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/ec-add.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ class BCX_API ec_add
}


/**
* Destructor.
*/
virtual ~ec_add()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/ec-decompress.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ class BCX_API ec_decompress
}


/**
* Destructor.
*/
virtual ~ec_decompress()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/ec-multiply-secrets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ class BCX_API ec_multiply_secrets
return "ec-tweak-add";
}

/**
* Destructor.
*/
virtual ~ec_multiply_secrets()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/ec-multiply.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ class BCX_API ec_multiply
}


/**
* Destructor.
*/
virtual ~ec_multiply()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/ec-new.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ class BCX_API ec_new
return "newkey";
}

/**
* Destructor.
*/
virtual ~ec_new()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/ec-to-address.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ class BCX_API ec_to_address
return "addr";
}

/**
* Destructor.
*/
virtual ~ec_to_address()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/ec-to-ek.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ class BCX_API ec_to_ek
return "brainwallet";
}

/**
* Destructor.
*/
virtual ~ec_to_ek()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
7 changes: 7 additions & 0 deletions include/bitcoin/explorer/commands/ec-to-public.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ class BCX_API ec_to_public
return "pubkey";
}

/**
* Destructor.
*/
virtual ~ec_to_public()
{
}

/**
* The member symbolic (not localizable) command name, lower case.
*/
Expand Down
Loading

0 comments on commit e44563e

Please sign in to comment.