Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
struct Car { string model; boolean reserved; }; interface gestion{ Car consult(in string model); };
consultメソッドが の配列を返すようにしたいのですがCars、別の構造体を作成してその中に car 配列を入れる必要がありますか?
consult
Cars
IDL で配列を次のように定義できます。
typedef Car CarArray[5];
ただし、これは固定サイズの配列です。可変サイズの配列を作成する場合は、次のようなシーケンスを使用することをお勧めします
typedef sequence <Car> CarSequence;
そして、相談方法を次のように変更します
CarArray consult(in string model);
また
CarSequence consult(in string model);