Exemplo n.º 1
0
bool
iAIDA::AIDA_HBookStore::HBook::describeCWNvariables(const int& id, const std::string& blockName,
						     void* firstVariableInCommonBlock, 
						     const std::string& steeringString)
{
  if (blockName.length() > iAIDA::AIDA_HBookStore::HBook::MAX_BLOCKNAME_LENGTH) return false;
  if (0 == firstVariableInCommonBlock) return false;
  int tid = id;
  std::string tblockName = blockName;
  std::string tsteeringString = steeringString;
  if ( tsteeringString != " " ) {
    int emptySpacesToAdd = ( steeringString.size() )%4;
    for ( int i = 0; i < emptySpacesToAdd; ++i ) tsteeringString += " ";
  }
  hbname_(&tid, 
	  const_cast<char*>(tblockName.c_str()),
	  firstVariableInCommonBlock, 
	  const_cast<char*>(tsteeringString.c_str()),
	  tblockName.length(),
	  tsteeringString.length() );
  return true;
}
Exemplo n.º 2
0
 void hbname(int id,const char*chblok,void*variable,const char*chform)
 {
    void hbname_(int *id, const char* chblok, void*variable, const char*chform, int,int);
    hbname_(&id,chblok,variable,chform,strlen(chblok),strlen(chform));
 }
Exemplo n.º 3
0
void hbname(int id, const char *CHBLOK,void *VAR, const char *CHFORM)
{
    hbname_(&id,CHBLOK,VAR,CHFORM,strlen(CHBLOK),strlen(CHFORM));
}