2012-11-30 4 views

답변

2

유일한 "true"로 객체의

// BackupServer.idl 

#ifndef BackupServer_idl 
#define BackupServer_idl 

interface BackupDaemon; 
#include "BackupExceptions.idl" 
typedef sequence<BackupDaemon> BackupDaemonList; 

interface BackupDaemon { 
    attribute string backupDaemonUser; 
    attribute string backupDaemonIP; 
    attribute string backupDaemonHostName; 
    attribute string backupDaemonBackupType; 
    attribute string backupDaemonType; 
    attribute string backupDaemonTime; 
    attribute string backupDaemonPath; 
    attribute boolean backupDaemonScheduled; 
    attribute long backupDaemonPort; 
    attribute string backupDaemonMacAddress; 
    typedef sequence<string> BackupPathesStrings; 
    boolean startBackup(
     in BackupPathesStrings backupPathes, 
     in string backupDaemonMacAddress); 
    void deleteBackup(
     in string backupPathes, 
     in string backupDaemonMacAddress) raises (BackupPathNotFoundException); 
}; 

interface BackupServer { 
    boolean registerBackupDaemon(in BackupDaemon bd) 
     raises (InvalidBackupDaemonException); 
    boolean unRegisterBackupDaemon(in string backupDaemonMacAddress) 
     raises (InvalidBackupDaemonException); 
    BackupDaemonList getBackupDeamons(); 
}; 

덕분에, 그렇지 않으면 "참조"가 교환 될 수있다 ValueTypesimple structured raw data as "struct" and "union"입니다.

한 위치에서 다른 위치로 CORBA 서버를 마이그레이션하는 것은 간단하지 않고 직접 구현할 수 없지만 복잡한 배치를 통해 수행 할 수 있습니다.