Commit 6ad8bfad authored by David COME's avatar David COME
Browse files

Added a README in castor/messsages

parent 0c0a9bac
* messages/README
* This file is part of the Castor project.
* See
* Copyright (C) 2003 CERN
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* @author Castor Dev team,
Castor messages for internal communication are now described using Google's API protocol buffers.
For writing a message, I let you look at the documentation or at the existing messages.
The syntax is fairly obvious.
Transforming those messages into C++ code is done only once using these simple commands
> cd $CASTOR_SRC/castor/messages
> protoc -I=. --cpp_out=. File.proto
That command will generate File.pb.h and into $CASTOR_SRC/castor/messages
Then has to be added to $CASTOR_SRC/castor/messages's CMakeList.txt
(in lib castorMessages)
After add to git the 3 new files (proto, pb.h and and the updated CMakeList
then commit the changes
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment