|
CORBA IDL原始碼美化效果演示 |
|
|
|
|
|
SourceFormatX 使用強大的IDL詞法解析引擎全面地分析您的原始碼並根據用戶自定義的CORBA IDL原始碼風格重構和美化CORBA IDL原始碼檔案,因此它能精細地根據不同的原始碼風格美化多種原始碼,甚至是下面這些極度混亂的原始碼:
|
這是一個 CORBA IDL 原始碼美化的範例,其目的是為了展示 SourceFormatX IDL程式碼美化工具 詞法解析引擎的威力。這份混亂的CORBA IDL原始碼檔案在1秒種內即被SourceFormatX美化和縮排成整潔的版式。
#include "CosEventComm.idl"
#pragma javaPackage org.omg
#pragma prefix "omg.org"
module CosEventChannelAdmin{exception AlreadyConnected {};exception TypeError {};
interface ProxyPushConsumer: CosEventComm::PushConsumer {
void connect_push_supplier(in CosEventComm::PushSupplier push_supplier)
raises(AlreadyConnected);};interface ProxyPullSupplier:CosEventComm::PullSupplier{
void connect_pull_consumer(in CosEventComm::PullConsumer pull_consumer)raises
(AlreadyConnected);};interface ProxyPullConsumer: CosEventComm::PullConsumer {
void connect_pull_supplier(in CosEventComm::PullSupplier pull_supplier)
raises(AlreadyConnected,TypeError);};
interface ProxyPushSupplier: CosEventComm::PushSupplier {void connect_push_consumer(
in CosEventComm::PushConsumer push_consumer)raises(AlreadyConnected, TypeError);};
interface ConsumerAdmin {ProxyPushSupplier obtain_push_supplier();
ProxyPullSupplier obtain_pull_supplier();};interface SupplierAdmin {
ProxyPushConsumer obtain_push_consumer();ProxyPullConsumer obtain_pull_consumer();};
interface EventChannel {ConsumerAdmin for_consumers();
SupplierAdmin for_suppliers();void destroy();};};
#include "CosEventComm.idl"
#pragma javaPackage org.omg
#pragma prefix "omg.org"
module CosEventChannelAdmin
{
exception AlreadyConnected{};
exception TypeError{};
interface ProxyPushConsumer: CosEventComm::PushConsumer
{
void connect_push_supplier(in CosEventComm::PushSupplier push_supplier)
raises(AlreadyConnected);
};
interface ProxyPullSupplier: CosEventComm::PullSupplier
{
void connect_pull_consumer(in CosEventComm::PullConsumer pull_consumer)
raises(AlreadyConnected);
};
interface ProxyPullConsumer: CosEventComm::PullConsumer
{
void connect_pull_supplier(in CosEventComm::PullSupplier pull_supplier)
raises(AlreadyConnected, TypeError);
};
interface ProxyPushSupplier: CosEventComm::PushSupplier
{
void connect_push_consumer(in CosEventComm::PushConsumer push_consumer)
raises(AlreadyConnected, TypeError);
};
interface ConsumerAdmin
{
ProxyPushSupplier obtain_push_supplier();
ProxyPullSupplier obtain_pull_supplier();
};
interface SupplierAdmin
{
ProxyPushConsumer obtain_push_consumer();
ProxyPullConsumer obtain_pull_consumer();
};
interface EventChannel
{
ConsumerAdmin for_consumers();
SupplierAdmin for_suppliers();
void destroy();
};
};
不要再浪費寶貴的時間手動整理美化CORBA IDL語言原始碼了! 現在就下載SourceFormatX原始碼美化工具!
|